xunliu commented on code in PR #6717:
URL: https://github.com/apache/gravitino/pull/6717#discussion_r2004765066


##########
authorizations/authorization-ranger/src/main/java/org/apache/gravitino/authorization/ranger/RangerAuthorizationPlugin.java:
##########
@@ -103,10 +103,7 @@ protected RangerAuthorizationPlugin(String metalake, 
Map<String, String> config)
     rangerServiceName = 
config.get(RangerAuthorizationProperties.RANGER_SERVICE_NAME);
     rangerClient = new RangerClientExtension(rangerUrl, authType, 
rangerAdminName, password);
 
-    if (Boolean.parseBoolean(
-        
config.get(RangerAuthorizationProperties.RANGER_SERVICE_CREATE_IF_ABSENT))) {
-      createRangerServiceIfNecessary(config, rangerServiceName);
-    }
+    createRangerServiceIfNecessary(config, rangerServiceName);

Review Comment:
   Why do we need delete `if` sentence?



-- 
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]

Reply via email to