Merge pull request #1843 from mmorel-35/golangci-lint/ineffassign

chore: enable ineffassign linter
tags/v4.25.4 v4.25.4
shirou 2 months ago committed by GitHub
commit 3ba33b4651
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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