Skip to content

Commit

Permalink
Delete excess lines of code
Browse files Browse the repository at this point in the history
  • Loading branch information
flaming-archer committed Apr 24, 2024
1 parent b3758e3 commit 06e74db
Showing 1 changed file with 0 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1341,14 +1341,6 @@ public GrantRevokePrivilegeResponse grant_revoke_privileges(GrantRevokePrivilege
public GrantRevokePrivilegeResponse refresh_privileges(HiveObjectRef hiveObjectRef, String authorizer,
GrantRevokePrivilegeRequest grantRevokePrivilegeRequest) throws MetaException, TException {
DatabaseMapping databaseMapping = checkWritePermissions(hiveObjectRef.getDbName());
PrivilegeBag privilegeBag = grantRevokePrivilegeRequest.getPrivileges();
if (privilegeBag != null && privilegeBag.getPrivileges() != null) {
for (HiveObjectPrivilege hiveObjectPrivilege : privilegeBag.getPrivileges()) {
if (hiveObjectPrivilege.getHiveObject() != null) {
databaseMapping.transformInboundHiveObjectRef(hiveObjectPrivilege.getHiveObject());
}
}
}
return databaseMapping.getClient().refresh_privileges(databaseMapping.transformInboundHiveObjectRef(hiveObjectRef),
authorizer, databaseMapping.transformInboundGrantRevokePrivilegesRequest(grantRevokePrivilegeRequest));
}
Expand Down

0 comments on commit 06e74db

Please sign in to comment.