Skip to content

Commit

Permalink
Merge pull request #5614 from AnalyticalGraphicsInc/whoops
Browse files Browse the repository at this point in the history
Fix bug in streamToPromise
  • Loading branch information
pjcozzi authored Jul 11, 2017
2 parents 30c7221 + 504a541 commit 8025215
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -1251,6 +1251,7 @@ function requirejsOptimize(name, config) {
function streamToPromise(stream) {
return new Promise(function(resolve, reject) {
stream.on('finish', resolve);
stream.on('end', reject);
stream.on('end', resolve);
stream.on('error', reject);
});
}

0 comments on commit 8025215

Please sign in to comment.