Skip to content

Commit cf0c642

Browse files
committed
fix: use if/else for platform-specific kill to satisfy no-unused-expressions
1 parent 0ca0c73 commit cf0c642

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

tests/release-bootstrap-smoke.test.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -253,9 +253,11 @@ describe("release bootstrap smoke", () => {
253253
new Promise((resolveClose) => setTimeout(resolveClose, 5_000)),
254254
]);
255255
if (webProcess.exitCode === null) {
256-
process.platform === "win32"
257-
? webProcess.kill()
258-
: webProcess.kill("SIGKILL");
256+
if (process.platform === "win32") {
257+
webProcess.kill();
258+
} else {
259+
webProcess.kill("SIGKILL");
260+
}
259261
}
260262
}
261263
} finally {

0 commit comments

Comments
 (0)