Skip to content

Commit

Permalink
Removing unnecessary variable declaration. Adding explicit assert call
Browse files Browse the repository at this point in the history
  • Loading branch information
scalvert committed Feb 9, 2017
1 parent eb95663 commit 56a230d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions packages/ember-routing/lib/system/router.js
Original file line number Diff line number Diff line change
Expand Up @@ -426,8 +426,7 @@ const EmberRouter = EmberObject.extend(Evented, {
@private
*/
isActive(routeName) {
let routerMicrolib = this.routerMicrolib;
return routerMicrolib.isActive(...arguments);
return this.routerMicrolib.isActive(...arguments);
},

/**
Expand Down
2 changes: 1 addition & 1 deletion packages/ember-routing/tests/system/router_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ QUnit.test('Router#router deprecates when called', function(assert) {
let router = createRouter();

expectDeprecation(function() {
equal(router.router, router.routerMicrolib);
assert.equal(router.router, router.routerMicrolib);
}, 'Usage of `router` is deprecated, use `routerMicrolib` instead.');
});

Expand Down

0 comments on commit 56a230d

Please sign in to comment.