1
0
mirror of https://github.com/minio/mc.git synced 2025-11-09 02:22:18 +03:00

add new linters and fix unnecessary type conversions (#3835)

This commit is contained in:
Harshavardhana
2021-10-14 15:33:31 -07:00
committed by GitHub
parent 0eef0174a7
commit ae271e7645
13 changed files with 31 additions and 45 deletions

View File

@@ -343,7 +343,7 @@ func parseAtimeMtime(attr map[string]string) (atime, mtime time.Time, err *probe
return atime, mtime, probe.NewError(e)
}
}
atime = time.Unix(int64(atim), int64(atimnsec))
atime = time.Unix(atim, atimnsec)
}
if val, ok := attr["mtime"]; ok {
@@ -359,7 +359,7 @@ func parseAtimeMtime(attr map[string]string) (atime, mtime time.Time, err *probe
return atime, mtime, probe.NewError(e)
}
}
mtime = time.Unix(int64(mtim), int64(mtimnsec))
mtime = time.Unix(mtim, mtimnsec)
}
return atime, mtime, nil
}