Skip to content

Commit

Permalink
Apply the PR suggestion
Browse files Browse the repository at this point in the history
  • Loading branch information
stheppi committed May 13, 2024
1 parent 90bedb7 commit 88f9760
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,10 @@ import software.amazon.awssdk.services.s3.model.S3Object
*/
object AwsS3StorageFilter {

def filterOut(o: S3Object) =
o.storageClass() == ObjectStorageClass.GLACIER ||
o.storageClass() == ObjectStorageClass.DEEP_ARCHIVE ||
o.storageClass() == ObjectStorageClass.GLACIER_IR
private val archiveStorageClasses = Set(
ObjectStorageClass.GLACIER,
ObjectStorageClass.DEEP_ARCHIVE,
ObjectStorageClass.GLACIER_IR,
)
def filterOut(o: S3Object): Boolean = archiveStorageClasses.contains(o.storageClass)
}

0 comments on commit 88f9760

Please sign in to comment.