From ffde31cfbd3fb5e319e8b52cd5b8a9d66fcef103 Mon Sep 17 00:00:00 2001 From: tgpethan Date: Fri, 3 Jan 2020 01:05:31 +0000 Subject: [PATCH] Don't need an if here --- index.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/index.js b/index.js index c4c4e8f..53c807f 100644 --- a/index.js +++ b/index.js @@ -66,9 +66,7 @@ fs.readFile('./misc/ascii.txt', function(err, data) { // Check if all the required modules flags are set let allRequiredExist = []; for (var i = 0; i < requiredModules.length; i++) { - if (requiredModules[i].status) { - allRequiredExist.push(true); - } + allRequiredExist.push(requiredModules[i].status); } if (allRequiredExist.length !== requiredModules.length) { // Exit if all required modules are not found -- 2.47.0