Skip to content

Commit 241fc28

Browse files
author
Kelly Selden
authored
Merge pull request #139 from bekzod/cleanup
cleanup `then` chain
2 parents acbb306 + 6adf576 commit 241fc28

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

src/ember-app.js

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -242,9 +242,7 @@ class EmberApp {
242242
.then(() => result.instanceBooted = true)
243243
.then(() => instance.visit(path, bootOptions))
244244
.then(() => waitForApp(instance))
245-
.then(() => {
246-
return instance;
247-
});
245+
.then(() => instance);
248246
}
249247

250248
/**
@@ -427,10 +425,7 @@ function buildBootOptions(shouldRender) {
427425
*/
428426
function waitForApp(instance) {
429427
let fastbootInfo = instance.lookup('info:-fastboot');
430-
431-
return fastbootInfo.deferredPromise.then(function() {
432-
return instance;
433-
});
428+
return fastbootInfo.deferredPromise;
434429
}
435430

436431
/*

0 commit comments

Comments
 (0)