From e8d8080d21b8dfa0650f4dd5120eb6d5a126f23c Mon Sep 17 00:00:00 2001 From: crubb Date: Thu, 27 Jul 2017 12:27:35 +0200 Subject: [PATCH] FIX: Properly check for unknown indicators --- commands/train.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/train.js b/commands/train.js index 69e109ae9f..404bd8ae77 100644 --- a/commands/train.js +++ b/commands/train.js @@ -93,7 +93,7 @@ module.exports = function container (get, set, clear) { unknownIndicators.push(indicator) }) } - if (unknownIndicators) { + if (unknownIndicators.length > 0) { console.error(('ERROR: The following indicators are not in forex.analytics: ').red + (unknownIndicators.toString()).yellow) console.error('Available indicators: ' + fa_availableIndicators.toString()) process.exit(1)