mirror of
https://github.com/minio/minio.git
synced 2025-11-09 13:39:46 -05:00
cleanup: All conditionals simplified under pkg. (#3875)
Address all the changes reported/recommended by `gosimple` tool.
This commit is contained in:
@@ -40,7 +40,7 @@ var fsType2StringMap = map[string]string{
|
||||
func getFSType(ftype int64) string {
|
||||
fsTypeHex := strconv.FormatInt(ftype, 16)
|
||||
fsTypeString, ok := fsType2StringMap[fsTypeHex]
|
||||
if ok == false {
|
||||
if !ok {
|
||||
return "UNKNOWN"
|
||||
}
|
||||
return fsTypeString
|
||||
|
||||
Reference in New Issue
Block a user