Skip to content

Commit

Permalink
fix comment
Browse files Browse the repository at this point in the history
  • Loading branch information
FANNG1 committed Oct 15, 2024
1 parent e1c8382 commit 37c9942
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,10 @@ private Map<String, String> vendCredentials(String location) {
configs.putAll(CredentialUtils.toIcebergProperties(credential));
return configs;
} else {
throw new IllegalArgumentException("Credential vending is not enabled, please set " + Credential.CREDENTIAL_TYPE + " to proper values");
throw new IllegalArgumentException(
"Credential vending is not enabled, please set "
+ Credential.CREDENTIAL_TYPE
+ " to proper values");
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -248,12 +248,11 @@ private boolean isCredentialVending(String accessDelegation) {
if ("vended-credentials".equalsIgnoreCase(accessDelegation)) {
return true;
} else if ("remote-signing".equalsIgnoreCase(accessDelegation)) {
throw new UnsupportedOperationException("Gravitino IcebergRESTServer doesn't support remote signing");
throw new UnsupportedOperationException(
"Gravitino IcebergRESTServer doesn't support remote signing");
} else {
throw new IllegalArgumentException(
X_ICEBERG_ACCESS_DELEGATION
+ ": "
+ accessDelegation + " is illegal");
X_ICEBERG_ACCESS_DELEGATION + ": " + accessDelegation + " is illegal");
}
}
}

0 comments on commit 37c9942

Please sign in to comment.