Remove: Unnecessary Condition in checkUserDefinedCode()
This commit is contained in:
1 parent
9cc2bbdee2
commit
96b52132f2
1 file changed
+1
-2
+1
-2
@@ -1266,8 +1266,7 @@ exports.newSuperalgosBotModulesTradingStages = function (processIndex) {
|
||||
break;
|
||||
}
|
||||
case 'Running' : {
|
||||
if (tradingSystemStage.userDefinedCode.config.runWhileAtStage &&
|
||||
tradingSystemStage.userDefinedCode.config.whileAtStageWhenToRun === when) {
|
||||
if (tradingSystemStage.userDefinedCode.config.runWhileAtStage) {
|
||||
tradingSystem.evalUserCode(tradingSystemStage, 'User Defined Code');
|
||||
}
|
||||
break;
|
||||
|
||||
Reference in new issue
Block a user