Skip to content

Commit

Permalink
Return promise chain
Browse files Browse the repository at this point in the history
A try to avoid unhandledRejection.
NOTE: current chaining method should be refactored, for example, to run in parallel?
  • Loading branch information
asamuzaK committed Nov 12, 2020
1 parent 471b11a commit c11588e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions js2bin.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ function asArray(val) {
});
});
});
return p;
} else if (args.ci) {
const versions = asArray(args.node || await new VersionInfo().get('ci'));
const sizes =
Expand All @@ -127,6 +128,7 @@ function asArray(val) {
p = p.then(() => lastBuilder.cleanupBuild().catch(err => log(err)));
}
});
return p;
} else {
return usage();
}
Expand Down

0 comments on commit c11588e

Please sign in to comment.