Skip to content

Commit

Permalink
chore(state): remove unnecessary character
Browse files Browse the repository at this point in the history
- Remove unnecessary `'` character

Closes angular-ui#2113
  • Loading branch information
djindjic authored and wesleycho committed Sep 23, 2015
1 parent aa0f843 commit d80854a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/state.js
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ function $StateProvider( $urlRouterProvider, $urlMatcherFactory) {

var name = state.name;
if (!isString(name) || name.indexOf('@') >= 0) throw new Error("State must have a valid name");
if (states.hasOwnProperty(name)) throw new Error("State '" + name + "'' is already defined");
if (states.hasOwnProperty(name)) throw new Error("State '" + name + "' is already defined");

// Get parent name
var parentName = (name.indexOf('.') !== -1) ? name.substring(0, name.lastIndexOf('.'))
Expand Down

0 comments on commit d80854a

Please sign in to comment.