Skip to content

Commit

Permalink
util: short-circuit dir entry loop
Browse files Browse the repository at this point in the history
  • Loading branch information
brandondyck authored and shoenig committed Aug 29, 2024
1 parent 0457f01 commit ebd109b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions util/tempfile_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,7 @@ func TestTempFile(t *testing.T) {
for _, entry := range entries {
if entry.Name() == filepath.Base(newPath) {
found = true
break
}
}
if !found {
Expand Down

0 comments on commit ebd109b

Please sign in to comment.