Skip to content

Commit

Permalink
Fix string comparison in S3 client (#3875) [ci fast]
Browse files Browse the repository at this point in the history

Signed-off-by: Ben Sherman <[email protected]>
Co-authored-by: Paolo Di Tommaso <[email protected]>
  • Loading branch information
bentsherman and pditommaso authored Apr 18, 2023
1 parent 9147197 commit 9344d29
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -583,7 +583,7 @@ protected void restoreFromGlacier(String bucketName, String key) {
RestoreObjectRequest request = new RestoreObjectRequest(bucketName, key);

String storageClass = client.getObjectMetadata(bucketName, key).getStorageClass();
if( storageClass != "INTELLIGENT_TIERING" )
if( storageClass!=null && !storageClass.equals("INTELLIGENT_TIERING") )
request.setExpirationInDays(glacierExpirationDays);

if( glacierRetrievalTier != null )
Expand Down

0 comments on commit 9344d29

Please sign in to comment.