Remove an unneeded if #12
1 changed files with 1 additions and 3 deletions
4
index.js
4
index.js
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue