Skip to content

Commit

Permalink
r/aws_s3_bucket_lifecycle_configuration: Fix golangci-lint 'unparam'.
Browse files Browse the repository at this point in the history
  • Loading branch information
ewbankkit committed Sep 27, 2023
1 parent 6636d58 commit 50100db
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .ci/.golangci2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,10 @@ issues:
- staticcheck
path: "internal/service/s3"
text: "SA1019: \\w+.(\\w+) is deprecated: (\\w+) has been deprecated"
- linters:
- staticcheck
path: "internal/service/s3"
text: "SA1019: \\w+.(\\w+) is deprecated: This member has been deprecated"
- linters:
- staticcheck
path: internal/service/securityhub/
Expand Down
2 changes: 1 addition & 1 deletion internal/service/s3/bucket_lifecycle_configuration.go
Original file line number Diff line number Diff line change
Expand Up @@ -505,7 +505,7 @@ func statusLifecycleRulesEquals(ctx context.Context, conn *s3.Client, bucket, ex
}
}

func waitLifecycleRulesEquals(ctx context.Context, conn *s3.Client, bucket, expectedBucketOwner string, rules []types.LifecycleRule, timeout time.Duration) ([]types.LifecycleRule, error) {
func waitLifecycleRulesEquals(ctx context.Context, conn *s3.Client, bucket, expectedBucketOwner string, rules []types.LifecycleRule, timeout time.Duration) ([]types.LifecycleRule, error) { //nolint:unparam
stateConf := &retry.StateChangeConf{
Target: []string{strconv.FormatBool(true)},
Refresh: statusLifecycleRulesEquals(ctx, conn, bucket, expectedBucketOwner, rules),
Expand Down

0 comments on commit 50100db

Please sign in to comment.