Skip to content

Commit

Permalink
minor
Browse files Browse the repository at this point in the history
  • Loading branch information
Dima Koss committed Jan 27, 2024
1 parent e33984c commit 9697662
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/internalpipe/any.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ func anySingleThread[T any](limit int, fn GeneratorFn[T]) *T {
var obj *T
var skipped bool

for i := 0; i > -1 && (i < limit); i++ {
for i := 0; i < limit; i++ {
if obj, skipped = fn(i); !skipped {
return obj
}
Expand Down

0 comments on commit 9697662

Please sign in to comment.