Skip to content

Commit 9ac34d0

Browse files
authored
fix: avoid null check on signal as it is optional (#32)
Signed-off-by: mertmit <[email protected]>
1 parent 81dd3e6 commit 9ac34d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ export class RunScriptWebpackPlugin implements WebpackPluginInstance {
133133

134134
private _stopServer() {
135135
const signal = getSignal(this.options.signal);
136-
if (signal && (this.worker?.pid)) {
136+
if (this.worker?.pid) {
137137
process.kill(this.worker.pid, signal);
138138
}
139139
};

0 commit comments

Comments
 (0)