Skip to content

Commit 611242b

Browse files
committed
Clean up
1 parent 110a30c commit 611242b

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

go.sum

Lines changed: 0 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pkg/golinters/forbidigo.go

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,13 @@ func NewForbidigo() *goanalysis.Linter {
3232

3333
analyzer.Run = func(pass *analysis.Pass) (interface{}, error) {
3434
var res []goanalysis.Issue
35-
linter, err := forbidigo.NewLinter(s.Forbid)
35+
fobidigo, err := forbidigo.NewLinter(s.Forbid)
3636
if err != nil {
3737
return nil, errors.Wrapf(err, "failed to create linter %q", forbidigoName)
3838
}
39+
3940
for _, file := range pass.Files {
40-
hints, err := linter.Run(pass.Fset, file)
41+
hints, err := fobidigo.Run(pass.Fset, file)
4142
if err != nil {
4243
return nil, errors.Wrapf(err, "forbidigo linter failed on file %q", file.Name.String())
4344
}
@@ -49,9 +50,11 @@ func NewForbidigo() *goanalysis.Linter {
4950
}, pass))
5051
}
5152
}
53+
5254
if len(res) == 0 {
5355
return nil, nil
5456
}
57+
5558
mu.Lock()
5659
resIssues = append(resIssues, res...)
5760
mu.Unlock()

0 commit comments

Comments
 (0)