Skip to content

Commit c4fd051

Browse files
committed
Remove an unnecessary type cast from Router
1 parent e4a8d20 commit c4fd051

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/@ember/routing/router.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1898,7 +1898,7 @@ EmberRouter.reopen({
18981898

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

19031903
if (typeof location === 'string') {
19041904
return undefined;

0 commit comments

Comments
 (0)