mirror of
https://github.com/minio/minio.git
synced 2025-01-11 23:13:23 -05:00
posix: Remove a non needed nil check in DiskInfo() (#8830)
posix.DiskInfo() returns errFaultyDisk when posix is nil, but there is no way that this would happen any time, therefore removing un-needed code.
This commit is contained in:
parent
b1ad99edbf
commit
c18fbdb29a
@ -440,10 +440,6 @@ func (s *posix) DiskInfo() (info DiskInfo, err error) {
|
|||||||
}
|
}
|
||||||
}()
|
}()
|
||||||
|
|
||||||
if s == nil {
|
|
||||||
return info, errFaultyDisk
|
|
||||||
}
|
|
||||||
|
|
||||||
if atomic.LoadInt32(&s.ioErrCount) > maxAllowedIOError {
|
if atomic.LoadInt32(&s.ioErrCount) > maxAllowedIOError {
|
||||||
return info, errFaultyDisk
|
return info, errFaultyDisk
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user