Merge pull request #12 from tgpethan/remove-if

Remove an unneeded if
This commit is contained in:
Ethan Stubbs 2020-01-03 03:29:21 +00:00 committed by GitHub
commit 4466f5aa18
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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