Skip to content

Commit

Permalink
Remove try/catch inside kill() (#273)
Browse files Browse the repository at this point in the history
  • Loading branch information
ehmicky committed Jun 3, 2019
1 parent 0bd5596 commit 6fb284b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions index.js
Expand Up @@ -247,9 +247,7 @@ const execa = (file, args, options) => {
options.forceKillAfter :
5000;
setTimeout(() => {
try {
originalKill('SIGKILL');
} catch (_) {}
originalKill('SIGKILL');
}, forceKillAfter).unref();
}

Expand Down

0 comments on commit 6fb284b

Please sign in to comment.