fix: success case in utils.CloseMany

This commit is contained in:
Charlie Moog 2022-01-09 10:46:29 -06:00
parent e29e110476
commit 7105cc67ae
No known key found for this signature in database
GPG key ID: 54C2F30EA784F821

View file

@ -371,5 +371,8 @@ func CloseMany(closers []io.Closer) error {
errs = append(errs, err)
}
}
return multiErr(errs)
if len(errs) > 0 {
return multiErr(errs)
}
return nil
}