mirror of
https://github.com/minio/minio.git
synced 2025-11-06 20:33:07 -05:00
Remove error package and cause functions (#5784)
This commit is contained in:
@@ -24,7 +24,6 @@ import (
|
||||
"github.com/minio/minio/cmd/logger"
|
||||
"github.com/minio/minio/pkg/bpool"
|
||||
"github.com/minio/minio/pkg/disk"
|
||||
"github.com/minio/minio/pkg/errors"
|
||||
)
|
||||
|
||||
// XL constants.
|
||||
@@ -142,7 +141,7 @@ func getDisksInfo(disks []StorageAPI) (disksInfo []disk.Info, onlineDisks int, o
|
||||
info, err := storageDisk.DiskInfo()
|
||||
if err != nil {
|
||||
logger.LogIf(context.Background(), err)
|
||||
if errors.IsErr(err, baseErrs...) {
|
||||
if IsErr(err, baseErrs...) {
|
||||
offlineDisks++
|
||||
continue
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user