Skip to content

Commit

Permalink
Appease the linter
Browse files Browse the repository at this point in the history
At least until we have a minimum of 1.22 with the loop var change
  • Loading branch information
mcpherrinm committed Dec 20, 2023
1 parent 5c4e28d commit 6ff244a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lambda/checker/checker.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ func HandleRequest(c *checker.Checker) func(ctx context.Context, event events.S3
return func(ctx context.Context, event events.S3Event) error {
var err error
for _, record := range event.Records {
record := record
err = multierr.Append(err, c.Check(ctx, record.S3.Bucket.Name, record.S3.Object.Key, &record.S3.Object.VersionID))
}
return err
Expand Down

0 comments on commit 6ff244a

Please sign in to comment.