fix: build on illumos (Solaris) (#13097)

This commit is contained in:
Dominik Hassler 2021-08-30 17:40:16 +02:00 committed by GitHub
parent 470553ff5d
commit 514b2d6f12
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -96,7 +96,7 @@ func readDirWithOpts(dirPath string, opts readDirOpts) (entries []string, err er
maxEntries := 1000 maxEntries := 1000
if opts.count > 0 && opts.count < maxEntries { if opts.count > 0 && opts.count < maxEntries {
maxEntries = count maxEntries = opts.count
} }
done := false done := false