Skip to content

Commit 6085815

Browse files
committed
Don't call the callback twice on error (fixes webpack#347)
1 parent 287984c commit 6085815

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎lib/Compilation.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ Compilation.prototype.addModuleDependencies = function(module, dependencies, bai
304304
}.bind(this));
305305
}.bind(this), function(err) {
306306
if(err) {
307-
callback(err);
307+
return callback(err);
308308
}
309309

310310
return callback();

0 commit comments

Comments
 (0)