Skip to content

Commit

Permalink
Codestyle.
Browse files Browse the repository at this point in the history
  • Loading branch information
oncletom committed Nov 28, 2014
1 parent 1a2ad2f commit 4b7ee18
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions bin/crx.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,22 +85,22 @@ function pack (dir, program) {
crx.privateKey = data;

crx.load().then(function () {
return crx.loadContents();
})
return crx.loadContents();
})
.then(function (zipBuffer) {
if (program.zipOutput) {
var outFile = resolve(cwd, program.zipOutput);
if (program.zipOutput) {
var outFile = resolve(cwd, program.zipOutput);

fs.createWriteStream(outFile).end(zipBuffer);
}
fs.createWriteStream(outFile).end(zipBuffer);
}

return crx.pack(zipBuffer);
return crx.pack(zipBuffer);
})
.then(function (crxBuffer) {
var outFile = resolve(cwd, program.output);
(outFile ? fs.createWriteStream(outFile) : process.stdout).end(crxBuffer);
var outFile = resolve(cwd, program.output);
(outFile ? fs.createWriteStream(outFile) : process.stdout).end(crxBuffer);

return crx.destroy();
return crx.destroy();
});
});
}

0 comments on commit 4b7ee18

Please sign in to comment.