Skip to content

Commit cd02753

Browse files
author
Geoff Vandegrift
committed
Remove extraneous 'throw'
1 parent 807028e commit cd02753

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ class WebpackShellPlugin {
6262
}
6363
if (this.options.onBuildStart.length) {
6464
console.log('Executing pre-build scripts');
65-
throw this.options.onBuildStart.forEach(script => {
65+
this.options.onBuildStart.forEach(script => {
6666
if (this.options.throwOnExecError) {
6767
spreadStdoutAndStdErr(exec(script, putsThrow));
6868
} else {

src/webpack-shell-plugin.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ export default class WebpackShellPlugin {
6060
}
6161
if (this.options.onBuildStart.length) {
6262
console.log('Executing pre-build scripts');
63-
throw this.options.onBuildStart.forEach((script) => {
63+
this.options.onBuildStart.forEach((script) => {
6464
if (this.options.throwOnExecError) {
6565
spreadStdoutAndStdErr(exec(script, putsThrow));
6666
}

0 commit comments

Comments
 (0)