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:
Arve Knudsen 2024-02-06 13:53:37 +01:00 committed by GitHub
parent 0a3fd8d958
commit 0853e52f4e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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)