do not print errors upon 'nil' err

This commit is contained in:
Minio Trusted 2022-06-06 17:33:41 -07:00
parent ac8cb6ba0d
commit e2d4d097e7
2 changed files with 6 additions and 0 deletions

View File

@ -143,6 +143,9 @@ func readAllFileInfo(ctx context.Context, disks []StorageAPI, bucket, object, ve
errs := g.Wait()
for index, err := range errs {
if err == nil {
continue
}
if !IsErr(err, []error{
errFileNotFound,
errVolumeNotFound,

View File

@ -493,6 +493,9 @@ func readAllXL(ctx context.Context, disks []StorageAPI, bucket, object string, r
errs := g.Wait()
for index, err := range errs {
if err == nil {
continue
}
if !IsErr(err, []error{
errFileNotFound,
errVolumeNotFound,