Browse Source

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>
pull/13549/head
Arve Knudsen 10 months ago committed by GitHub
parent
commit
0853e52f4e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 3
      util/runtime/statfs_default.go

3
util/runtime/statfs_default.go

@ -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…
Cancel
Save