Skip to content

Commit

Permalink
chore: better handling pointer dereferencing for S3 calls
Browse files Browse the repository at this point in the history
  • Loading branch information
junghao committed Mar 18, 2024
1 parent 5ccf441 commit 45a5d4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aws/s3/s3.go
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ func (s *S3) GetContentSizeTime(bucket, key string) (int64, time.Time, error) {
if err != nil {
return size, mt, err
}
return *o.ContentLength, *o.LastModified, nil
return aws.ToInt64(o.ContentLength), aws.ToTime(o.LastModified), nil
}

// Put puts the object in bucket using specified key.
Expand Down

0 comments on commit 45a5d4d

Please sign in to comment.