Skip to content

Commit d4f63a2

Browse files
committed
chore: minor unrelated changes
1 parent 852a237 commit d4f63a2

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

pkg/config/loader.go

+4-3
Original file line numberDiff line numberDiff line change
@@ -94,13 +94,14 @@ func (l *Loader) handleGoVersion() {
9494

9595
l.cfg.LintersSettings.ParallelTest.Go = l.cfg.Run.Go
9696

97-
trimmedGoVersion := trimGoVersion(l.cfg.Run.Go)
98-
99-
l.cfg.LintersSettings.Gocritic.Go = trimmedGoVersion
10097
if l.cfg.LintersSettings.Gofumpt.LangVersion == "" {
10198
l.cfg.LintersSettings.Gofumpt.LangVersion = l.cfg.Run.Go
10299
}
103100

101+
trimmedGoVersion := trimGoVersion(l.cfg.Run.Go)
102+
103+
l.cfg.LintersSettings.Gocritic.Go = trimmedGoVersion
104+
104105
// staticcheck related linters.
105106
if l.cfg.LintersSettings.Staticcheck.GoVersion == "" {
106107
l.cfg.LintersSettings.Staticcheck.GoVersion = trimmedGoVersion

0 commit comments

Comments
 (0)