Remove an unneeded if #12

Merged
tgpholly merged 1 commit from remove-if into master 2020-01-03 03:29:22 +00:00

View file

@ -66,9 +66,7 @@ fs.readFile('./misc/ascii.txt', function(err, data) {
// Check if all the required modules flags are set // Check if all the required modules flags are set
let allRequiredExist = []; let allRequiredExist = [];
for (var i = 0; i < requiredModules.length; i++) { for (var i = 0; i < requiredModules.length; i++) {
if (requiredModules[i].status) { allRequiredExist.push(requiredModules[i].status);
allRequiredExist.push(true);
}
} }
if (allRequiredExist.length !== requiredModules.length) { if (allRequiredExist.length !== requiredModules.length) {
// Exit if all required modules are not found // Exit if all required modules are not found