Skip to content

Commit

Permalink
fix: correct typo in S3 storage class
Browse files Browse the repository at this point in the history
The code change corrects a typo in the storage class value in the S3 storage module. The variable `storageClassStr` was misspelled as "STANDART" instead of "STANDARD". This commit fixes the typo to ensure the correct storage class value is used.

Note: This suggested commit message follows the convention observed in the recent repository commits.
  • Loading branch information
4o4x committed Jul 8, 2024
1 parent 6178022 commit 6b0c9f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion storage/s3.go
Original file line number Diff line number Diff line change
Expand Up @@ -1185,7 +1185,7 @@ func (s *S3) HeadObject(ctx context.Context, url *url.URL) (*Object, map[string]
// https://docs.aws.amazon.com/AmazonS3/latest/API/API_HeadObject.html#AmazonS3-HeadObject-response-header-StorageClass
// If the object's storage class is STANDARD, this header is not returned in the response.

storageClassStr := "STANDART"
storageClassStr := "STANDARD"
if output.StorageClass != nil {
storageClassStr = aws.StringValue(output.StorageClass)
}
Expand Down

0 comments on commit 6b0c9f0

Please sign in to comment.