Merge "Grant.java-removing useless assignments"
authorJonathan Gathman <jonathan.gathman@att.com>
Mon, 2 Dec 2019 23:38:05 +0000 (23:38 +0000)
committerGerrit Code Review <gerrit@onap.org>
Mon, 2 Dec 2019 23:38:05 +0000 (23:38 +0000)
auth/auth-cmd/src/main/java/org/onap/aaf/auth/cmd/perm/Grant.java

index eb20697..3770a58 100644 (file)
@@ -74,7 +74,7 @@ public class Grant extends Cmd {
 
                 Future<RolePermRequest> frpr = null;
 
-                String[] roles = args[idx++].split(",");
+                String[] roles = args[idx].split(",");
                 String strA;
                 String strB;
                 for (String role : roles) {
@@ -110,7 +110,6 @@ public class Grant extends Cmd {
                             pw().println(" Accepted, but requires Approvals before actualizing");
                         } else {
                             error(frpr);
-                            idx=Integer.MAX_VALUE;
                         }
                     }
                 }