chore: enable ineffassign linter

Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
pull/1843/head
Matthieu MOREL 2 months ago
parent af2d6de7aa
commit 6469062ba9

@ -22,6 +22,7 @@ linters:
- gosec - gosec
- govet - govet
- importas - importas
- ineffassign
- misspell - misspell
- nakedret - nakedret
- nolintlint - nolintlint
@ -34,7 +35,6 @@ linters:
- usetesting - usetesting
disable: disable:
- errcheck - errcheck
- ineffassign
- staticcheck - staticcheck
- unused - unused
settings: settings:

@ -63,7 +63,7 @@ func PartitionsWithContext(ctx context.Context, _ bool) ([]PartitionStat, error)
if startBlank.MatchString(line) { if startBlank.MatchString(line) {
line = "localhost" + line line = "localhost" + line
} }
p := strings.Fields(lines[idx]) p := strings.Fields(line)
if len(p) < 5 || ignoreFSType[p[colidx["vfs"]]] { if len(p) < 5 || ignoreFSType[p[colidx["vfs"]]] {
continue continue
} }

Loading…
Cancel
Save