justinmclean commented on code in PR #8120:
URL: https://github.com/apache/gravitino/pull/8120#discussion_r2280117385
##########
core/src/main/java/org/apache/gravitino/hook/AccessControlHookDispatcher.java:
##########
@@ -192,9 +191,10 @@ public boolean deleteRole(String metalake, String role)
throws NoSuchMetalakeExc
log.debug(e.getMessage());
}
boolean resultOfDeleteRole = dispatcher.deleteRole(metalake, role);
- if (oldRole != null) {
- notifyRoleUserRelChange(((RoleEntity) oldRole).id());
- }
+
+ if(resultOfDeleteRole && oldRole!= null)
+ notifyRoleUserRelChange(metalake,role)
+
Review Comment:
The CI is failing here because we use Spotless to make sure the code is
consistently formatted. You can run Spotless yourself to fix this or manually
add the brackets back in.
--
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]