Skip to content

Commit

Permalink
Refactor lambda.go to correctly handle the number of kept versions in…
Browse files Browse the repository at this point in the history
… scanLambdaFunctions
  • Loading branch information
fujiwara committed Nov 1, 2024
1 parent bce7697 commit 7cb57c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lambda.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ func (s *Scanner) scanLambdaFunctions(ctx context.Context, lcs []*LambdaConfig)
return ok
}
kept++
return kept < keepCount
return kept <= keepCount
})
for _, v := range scanVersions {
if err := s.scanLambdaFunctionArn(ctx, *v.FunctionArn, aliases[*v.Version]...); err != nil {
Expand Down

0 comments on commit 7cb57c8

Please sign in to comment.