Skip to content

Commit 1b92c61

Browse files
committed
chore: enable sloppyReassign rule from go-critic
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
1 parent 82459bb commit 1b92c61

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.golangci.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ linters:
2323
- importShadow
2424
- paramTypeCombine
2525
- rangeValCopy
26-
- sloppyReassign
2726
- tooManyResultsChecker
2827
- unnamedResult
2928
- whyNoLint

sysfs/system_cpu.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,8 @@ func (fs FS) SystemCpufreq() ([]SystemCPUCpufreqStats, error) {
255255
})
256256
}
257257

258-
if err = g.Wait(); err != nil {
258+
err = g.Wait()
259+
if err != nil {
259260
return nil, err
260261
}
261262

0 commit comments

Comments
 (0)