You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
152268: storage: inline `recordStats` function in `linux_parse.go` to fix lint r=dodeca12 a=dodeca12
`./dev lint` runs a series of lint checks, which includes `TestLint/TestStaticCheck`; `TestLint/TestStaticCheck` throws an an error:
```log
=== RUN TestLint/TestStaticCheck
gen-lint_test.go:2119:
pkg/storage/disk/monitor.go:198:25: func (*monitoredDisk).recordStats is unused (U1000)
```
However, `recordStats` is used in `pkg/storage/disk/linux_parse.go` which has a `//go:build linux` constraint, so it is actually not "unused".
This PR resolves the linter error by inlining the behaviour in `linux_parse.go` and removing the function from `monitor.go`.
Epic: None
Release note: None
Co-authored-by: Swapneeth Gorantla <[email protected]>
0 commit comments