justinmclean commented on code in PR #6127:
URL: https://github.com/apache/gravitino/pull/6127#discussion_r1904926552
##########
clients/cli/src/main/java/org/apache/gravitino/cli/GravitinoCommandLine.java:
##########
@@ -805,9 +793,12 @@ url, ignore, metalake, getOneRole(roles,
CommandActions.REMOVE), name, privilege
}
}
- private String getOneRole(String[] roles, String command) {
- Preconditions.checkArgument(
- roles.length == 1, command + " requires only one role, but multiple
are currently passed.");
+ private String getOneRole(String[] roles) {
Review Comment:
Some commands support multiple roles some do not, so it is needed.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]