From 6470f23997c98997c76ba9161bac68ea685550d8 Mon Sep 17 00:00:00 2001 From: Thugutla sailakshmi Date: Thu, 7 Nov 2019 12:54:14 +0530 Subject: Grant.java-removing useless assignments Issue-ID: AAF-876 Change-Id: I17093f3607cfbcebbe7123a9ecde22a8559d4f0b Signed-off-by: Thugutla sailakshmi --- auth/auth-cmd/src/main/java/org/onap/aaf/auth/cmd/perm/Grant.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'auth') diff --git a/auth/auth-cmd/src/main/java/org/onap/aaf/auth/cmd/perm/Grant.java b/auth/auth-cmd/src/main/java/org/onap/aaf/auth/cmd/perm/Grant.java index eb206970..3770a58c 100644 --- a/auth/auth-cmd/src/main/java/org/onap/aaf/auth/cmd/perm/Grant.java +++ b/auth/auth-cmd/src/main/java/org/onap/aaf/auth/cmd/perm/Grant.java @@ -74,7 +74,7 @@ public class Grant extends Cmd { Future 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; } } } -- cgit 1.2.3-korg