Skip to content

Commit 3ba33b4

Browse files
authored
Merge pull request #1843 from mmorel-35/golangci-lint/ineffassign
chore: enable ineffassign linter
2 parents af2d6de + 6469062 commit 3ba33b4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.golangci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ linters:
2222
- gosec
2323
- govet
2424
- importas
25+
- ineffassign
2526
- misspell
2627
- nakedret
2728
- nolintlint
@@ -34,7 +35,6 @@ linters:
3435
- usetesting
3536
disable:
3637
- errcheck
37-
- ineffassign
3838
- staticcheck
3939
- unused
4040
settings:

disk/disk_aix_nocgo.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ func PartitionsWithContext(ctx context.Context, _ bool) ([]PartitionStat, error)
6363
if startBlank.MatchString(line) {
6464
line = "localhost" + line
6565
}
66-
p := strings.Fields(lines[idx])
66+
p := strings.Fields(line)
6767
if len(p) < 5 || ignoreFSType[p[colidx["vfs"]]] {
6868
continue
6969
}

0 commit comments

Comments
 (0)