Skip to content

Commit

Permalink
Addressing PR comments
Browse files Browse the repository at this point in the history
  • Loading branch information
sydney-munro committed Mar 3, 2022
1 parent 776ee54 commit 5149f01
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -970,8 +970,7 @@ public boolean requesterPays(String bucketName) {
if (ex.getReason().equals("userProjectMissing")) {
return true;
// fallback to checking the error code and error message.
} else if (ex.getCode() == 400
&& ex.getMessage().contains("Bucket is a requester pays bucket")) {
} else if (ex.getCode() == 400 && ex.getMessage().contains("requester pays")) {
return true;
}
throw ex;
Expand Down

0 comments on commit 5149f01

Please sign in to comment.