Skip to content

Commit 967c860

Browse files
committed
Use for loop for consistency
1 parent 2c03813 commit 967c860

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/command.coffee

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -462,9 +462,9 @@ forkNode = ->
462462
cwd: process.cwd()
463463
env: process.env
464464
stdio: [0, 1, 2]
465-
['SIGINT', 'SIGTERM'].forEach (signal) ->
466-
process.on signal, ->
467-
p.kill signal
465+
for signal in ['SIGINT', 'SIGTERM']
466+
process.on signal, do (signal) ->
467+
-> p.kill signal
468468
p.on 'exit', (code) -> process.exit code
469469

470470
# Print the `--help` usage message and exit. Deprecated switches are not

0 commit comments

Comments
 (0)