This commit is contained in:
Shalabh Gupta 2026-03-09 12:53:07 +05:30 committed by GitHub
commit 283aff0238
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -406,9 +406,9 @@ func readDirNames(path string) ([]string, error) {
if err != nil {
return nil, err
}
defer f.Close()
paths, err := f.Readdirnames(-1)
f.Close()
if err != nil {
return nil, err
}