mirror of
https://github.com/pgsty/minio.git
synced 2026-10-09 19:25:59 +03:00
Remove error package and cause functions (#5784)
This commit is contained in:
+1
-2
@@ -26,7 +26,6 @@ import (
|
||||
"time"
|
||||
|
||||
"github.com/minio/minio/cmd/logger"
|
||||
errors2 "github.com/minio/minio/pkg/errors"
|
||||
"github.com/tidwall/gjson"
|
||||
)
|
||||
|
||||
@@ -39,7 +38,7 @@ import (
|
||||
func reduceErrs(errs []error, ignoredErrs []error) (maxCount int, maxErr error) {
|
||||
errorCounts := make(map[error]int)
|
||||
for _, err := range errs {
|
||||
if errors2.IsErrIgnored(err, ignoredErrs...) {
|
||||
if IsErrIgnored(err, ignoredErrs...) {
|
||||
continue
|
||||
}
|
||||
errorCounts[err]++
|
||||
|
||||
Reference in New Issue
Block a user