Skip to content

Commit

Permalink
* fix style and deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
pa.sharaev committed Jan 22, 2024
1 parent 78df90d commit bd47f3b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -580,7 +580,7 @@ public Optional<BucketInfo> getBucketInfo(String bucketName) {
private String safeCall(Request request) {
try (Response response = client.newCall(request).execute()) {
if (response.code() == 404) {
throw new RgwAdminException(404, "not found");
return null;
}
if (!response.isSuccessful()) {
throw ErrorUtils.parseError(response);
Expand Down

0 comments on commit bd47f3b

Please sign in to comment.