From 75db500e85d068d74e957a82775b9b3c130a7eba Mon Sep 17 00:00:00 2001 From: Philip Brown <57574240+pbdigital-dot-org@users.noreply.github.com> Date: Fri, 12 Mar 2021 16:22:25 +0100 Subject: [PATCH] cmd/os-readdir_other.go - return nil with err (#11772) --- cmd/os-readdir_other.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/os-readdir_other.go b/cmd/os-readdir_other.go index ae6db23b2..256cbeea9 100644 --- a/cmd/os-readdir_other.go +++ b/cmd/os-readdir_other.go @@ -126,7 +126,7 @@ func readDirN(dirPath string, count int) (entries []string, err error) { isSysErrTooManySymlinks(err) { continue } - return err + return nil, err } // Ignore symlinked directories.