AAFcli.java-Merge the if statement with the existing one 21/95921/1
authorThugutla sailakshmi <tsaila10@in.ibm.com>
Wed, 18 Sep 2019 14:05:30 +0000 (19:35 +0530)
committerThugutla sailakshmi <tsaila10@in.ibm.com>
Wed, 18 Sep 2019 14:05:35 +0000 (19:35 +0530)
AAFcli.java-Merge the if statement with the existing one

Issue-ID: AAF-876
Change-Id: I5bcb2f45f8210b519ca9667b8b17e20b110ab4ff
Signed-off-by: Thugutla sailakshmi <tsaila10@in.ibm.com>
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