Skip to content

Commit

Permalink
fix(console_generate): remove useless boolean-to-object conversion (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
curbengh authored Feb 25, 2020
1 parent a71f08a commit a97bd2f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/plugins/console/generate.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ function generateConsole(args = {}) {
function writeFile(path, force) {
const dest = join(publicDir, path);
const cacheId = `public/${path}`;
const dataStream = wrapDataStream(route.get(path), { bail });
const dataStream = wrapDataStream(route.get(path), bail);
const cacheStream = new CacheStream();
const hashStream = new HashStream();

Expand Down Expand Up @@ -81,9 +81,9 @@ function generateConsole(args = {}) {
});
}

function wrapDataStream(dataStream, { bail }) {
function wrapDataStream(dataStream, bail) {
// Pass original stream with all data and errors
if (bail === true) {
if (bail) {
return dataStream;
}

Expand Down

0 comments on commit a97bd2f

Please sign in to comment.