From 30738bc18b339e6a0822580ce3c63b972c7bb8d2 Mon Sep 17 00:00:00 2001 From: ehmicky Date: Tue, 7 May 2019 16:36:03 +0200 Subject: [PATCH] Remove dead code related to exit code names --- index.js | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/index.js b/index.js index 6261c3abfd..97d2630f8b 100644 --- a/index.js +++ b/index.js @@ -239,19 +239,7 @@ function getErrorPrefix({timedOut, timeout, signal, exitCodeName, exitCode, isCa return `was killed with ${signal}`; } - if (exitCodeName !== undefined && exitCode !== undefined) { - return `failed with exit code ${exitCode} (${exitCodeName})`; - } - - if (exitCodeName !== undefined) { - return `failed with exit code ${exitCodeName}`; - } - - if (exitCode !== undefined) { - return `failed with exit code ${exitCode}`; - } - - return 'failed'; + return `failed with exit code ${exitCode} (${exitCodeName})`; } function joinCommand(command, args) {