Skip to content

Commit efc9580

Browse files
committed
fix: invalid condition
1 parent 8341792 commit efc9580

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pkg/config/loader.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ func (l *Loader) handleGoVersion() {
277277
if l.cfg.LintersSettings.Gosimple.GoVersion == "" {
278278
l.cfg.LintersSettings.Gosimple.GoVersion = trimmedGoVersion
279279
}
280-
if l.cfg.LintersSettings.Stylecheck.GoVersion != "" {
280+
if l.cfg.LintersSettings.Stylecheck.GoVersion == "" {
281281
l.cfg.LintersSettings.Stylecheck.GoVersion = trimmedGoVersion
282282
}
283283
}
@@ -346,8 +346,8 @@ func (l *Loader) handleDeprecation() error {
346346

347347
// Deprecated since v1.44.0.
348348
if len(l.cfg.LintersSettings.Gomnd.Settings) > 0 {
349-
l.warn("The configuration option `linters.gomnd.settings` is deprecated. " +
350-
"Please use the options `linters.gomnd.checks`,`linters.gomnd.ignored-numbers`,`linters.gomnd.ignored-files`,`linters.gomnd.ignored-functions`.")
349+
l.warn("The configuration option `linters.gomnd.settings` is deprecated. Please use the options " +
350+
"`linters.gomnd.checks`,`linters.gomnd.ignored-numbers`,`linters.gomnd.ignored-files`,`linters.gomnd.ignored-functions`.")
351351
}
352352

353353
return nil

0 commit comments

Comments
 (0)