From fc06dbc89e4bec63f4b8a9ade676831bfe6d9738 Mon Sep 17 00:00:00 2001 From: sverweij Date: Fri, 25 Nov 2016 00:24:53 +0100 Subject: [PATCH] :wrench: removes a superfluous or --- src/cli/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cli/index.js b/src/cli/index.js index 07f0b27e9..fc034af9b 100644 --- a/src/cli/index.js +++ b/src/cli/index.js @@ -41,7 +41,7 @@ function write(pOutputTo, pContent) { function calculateExitCode(pDependencyList, pOutputType) { const ERROR_CHROME_OFFSET = 5; - if (pOutputType !== "err" || pDependencyList.length === 0) { + if (pOutputType !== "err") { return 0; } return pDependencyList.split('\n').length - ERROR_CHROME_OFFSET;