From 3f7aa3e1afd28ef29b3b02cdcafa635209be7792 Mon Sep 17 00:00:00 2001 From: ehmicky Date: Mon, 3 Jun 2019 10:00:00 +0200 Subject: [PATCH] Remove try/catch inside `kill()` --- index.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/index.js b/index.js index 84a3de9dbf..b2ddb8c676 100644 --- a/index.js +++ b/index.js @@ -247,9 +247,7 @@ const execa = (file, args, options) => { options.forceKillAfter : 5000; setTimeout(() => { - try { - originalKill('SIGKILL'); - } catch (_) {} + originalKill('SIGKILL'); }, forceKillAfter).unref(); }