Skip to content

Commit 455ff93

Browse files
committed
chore: update implementation
1 parent 00b8408 commit 455ff93

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/golinters/gomoddirectives/gomoddirectives.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ func New(settings *config.GoModDirectivesSettings) *goanalysis.Linter {
4040
).WithContextSetter(func(lintCtx *linter.Context) {
4141
analyzer.Run = func(pass *analysis.Pass) (any, error) {
4242
once.Do(func() {
43-
results, err := gomoddirectives.Analyze(opts)
43+
results, err := gomoddirectives.AnalyzePass(pass, opts)
4444
if err != nil {
4545
lintCtx.Log.Warnf("running %s failed: %s: "+
4646
"if you are not using go modules it is suggested to disable this linter", linterName, err)

0 commit comments

Comments
 (0)