Skip to content

Commit bbda6e6

Browse files
committed
dev: remove unused function SetAnalyzerGoVersion
1 parent 29c5529 commit bbda6e6

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

pkg/golinters/internal/staticcheck_common.go

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,6 @@ func SetupStaticCheckAnalyzers(src []*lint.Analyzer, checks []string) []*analysi
3232
return ret
3333
}
3434

35-
func SetAnalyzerGoVersion(a *analysis.Analyzer, goVersion string) {
36-
if v := a.Flags.Lookup("go"); v != nil {
37-
if err := v.Value.Set(goVersion); err != nil {
38-
debugf("Failed to set go version: %s", err)
39-
}
40-
}
41-
}
42-
4335
func StaticCheckConfig(settings *config.StaticCheckSettings) *scconfig.Config {
4436
var cfg *scconfig.Config
4537

0 commit comments

Comments
 (0)