Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
- UnhandledPromiseRejectionWarning: Error: Callback was already called.
  • Loading branch information
aleksandr_dovnar committed Dec 6, 2018
1 parent 6966592 commit c18f494
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/svg-sprite/transform/svgo.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,9 @@ module.exports = function (shape, config, spriter, cb) {
}
}

cb(null);
process.nextTick(function() {
cb(null);
});
}).catch(function (error) {
spriter.error('Optimizing "%s" with SVGO failed with error "%s"', shape.name, error);

Expand Down

0 comments on commit c18f494

Please sign in to comment.