Remove an unneeded if #12

Merged
tgpholly merged 1 commit from remove-if into master 2020-01-03 03:29:22 +00:00
Showing only changes of commit ffde31cfbd - Show all commits

View file

@ -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