Skip to content

Commit

Permalink
chore: go simple for S3.Tag len (#789)
Browse files Browse the repository at this point in the history
  • Loading branch information
dmicheneau authored Aug 29, 2024
1 parent 1cc9df9 commit 5b25dbe
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ func ToBucketLifecycleConfigurationModel(ctx context.Context, lifecycle *s3.GetB
}
and.Prefix.SetPtr(rule.Filter.And.Prefix)
tags := make([]*BucketLifecycleConfigurationModelTag, 0)
if rule.Filter.And.Tags != nil && len(rule.Filter.And.Tags) > 0 {
if len(rule.Filter.And.Tags) > 0 {
for _, tag := range rule.Filter.And.Tags {
tagRefreshed := &BucketLifecycleConfigurationModelTag{
Key: supertypes.NewStringNull(),
Expand Down

0 comments on commit 5b25dbe

Please sign in to comment.