Commit f713e72c authored by Kristof Szabados's avatar Kristof Szabados
Browse files

minor simplification


Signed-off-by: Kristof Szabados's avatarKristof Szabados <Kristof.Szabados@ericsson.com>
parent 9e8c49de
......@@ -416,7 +416,8 @@ public class Cli extends UserInterface {
return mainController.get_state() == mcStateEnum.MC_INACTIVE;
case WAIT_EXECUTE_LIST:
if (mainController.get_state() == mcStateEnum.MC_READY) {
if (++executeListIndex < mycfg.getExecuteItems().size()) {
++executeListIndex;
if (executeListIndex < mycfg.getExecuteItems().size()) {
executeFromList(executeListIndex);
} else {
System.out.println("Execution of [EXECUTE] section finished.");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment