Merge "AAFcli.java-Merge the if statement with the existing one"
authorJonathan Gathman <jonathan.gathman@att.com>
Thu, 19 Sep 2019 15:40:26 +0000 (15:40 +0000)
committerGerrit Code Review <gerrit@onap.org>
Thu, 19 Sep 2019 15:40:26 +0000 (15:40 +0000)
auth/auth-cmd/src/main/java/org/onap/aaf/auth/cmd/AAFcli.java

index 44d86d3..bd8f1a5 100644 (file)
@@ -215,8 +215,7 @@ public class AAFcli {
                     }
                 } else if ("expect".equalsIgnoreCase(largs[idx])) {
                     expect.clear();
-                    if (largs.length > idx++) {
-                        if (!"nothing".equals(largs[idx])) {
+                    if ((largs.length > idx++)&&(!"nothing".equals(largs[idx]))) {
                             for (String str : largs[idx].split(",")) {
                                 try {
                                     if ("Exception".equalsIgnoreCase(str)) {
@@ -229,8 +228,7 @@ public class AAFcli {
                                 }
                             }
                         ++idx;
-                        }
-                    }
+                }
                     continue;
                     // Sleep, typically for reports, to allow DB to update
                     // Milliseconds