mirror of
https://github.com/prometheus/prometheus
synced 2024-12-25 07:52:28 +00:00
util/runtime: Ignore nolintlint failure on OSX (#13546)
util/runtime: Make nolintlint ignore unconvert linter directive --------- Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
This commit is contained in:
parent
0a3fd8d958
commit
0853e52f4e
@ -71,7 +71,8 @@ func Statfs(path string) string {
|
||||
|
||||
var fs syscall.Statfs_t
|
||||
err := syscall.Statfs(path, &fs)
|
||||
//nolint:unconvert // This ensure Type format on all Platforms
|
||||
// nolintlint might cry out depending on the architecture (e.g. ARM64), so ignore it.
|
||||
//nolint:unconvert,nolintlint // This ensures Type format on all Platforms.
|
||||
localType := int64(fs.Type)
|
||||
if err != nil {
|
||||
return strconv.FormatInt(localType, 16)
|
||||
|
Loading…
Reference in New Issue
Block a user