Skip to content

Commit 1ceb241

Browse files
committed
remove redundant RSVP.resolve()
1 parent 34e7c0b commit 1ceb241

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/ember-app.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
const fs = require('fs');
44
const path = require('path');
5-
const RSVP = require('rsvp');
65
const chalk = require('chalk');
76

87
const najax = require('najax');
@@ -433,7 +432,7 @@ function waitForApp(instance) {
433432
*/
434433
function createShoebox(doc, fastbootInfo) {
435434
let shoebox = fastbootInfo.shoebox;
436-
if (!shoebox) { return RSVP.resolve(); }
435+
if (!shoebox) { return; }
437436

438437
for (let key in shoebox) {
439438
if (!shoebox.hasOwnProperty(key)) { continue; }
@@ -450,8 +449,6 @@ function createShoebox(doc, fastbootInfo) {
450449
scriptEl.appendChild(scriptText);
451450
doc.body.appendChild(scriptEl);
452451
}
453-
454-
return RSVP.resolve();
455452
}
456453

457454
const JSON_ESCAPE = {

0 commit comments

Comments
 (0)