Skip to content

Commit

Permalink
Remove an unnecessary type cast from Router
Browse files Browse the repository at this point in the history
  • Loading branch information
chriskrycho committed May 1, 2023
1 parent 789439a commit 6369aeb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/@ember/routing/router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1898,7 +1898,7 @@ EmberRouter.reopen({

// FIXME: Does this need to be overrideable via extend?
url: computed(function (this: EmberRouter) {
let location = get(this, 'location') as string | EmberLocation;
let location = get(this, 'location');

if (typeof location === 'string') {
return undefined;
Expand Down

0 comments on commit 6369aeb

Please sign in to comment.