Skip to content

Commit

Permalink
rename var from ok to found
Browse files Browse the repository at this point in the history
  • Loading branch information
marcoandredinis committed Jan 6, 2025
1 parent ec1df2f commit 0316455
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/utils/slices/slices.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ func FilterMapUnique[T any, S comparable](ts []T, fn func(T) (s S, include bool)
seen := make(map[S]struct{}, len(ts))
for _, t := range ts {
if s, include := fn(t); include {
if _, ok := seen[s]; !ok {
if _, found := seen[s]; !found {
seen[s] = struct{}{}
ss = append(ss, s)
}
Expand Down

0 comments on commit 0316455

Please sign in to comment.