Skip to content

Commit 7c49721

Browse files
committed
update gochecknoglobals
Apply leighmcculloch/gochecknoglobals@abbdf6e
1 parent 183765e commit 7c49721

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/golinters/gochecknoglobals.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ func (lint Gochecknoglobals) checkFile(f *ast.File, fset *token.FileSet) []resul
4949
}
5050

5151
res = append(res, result.Issue{
52-
Pos: fset.Position(genDecl.TokPos),
52+
Pos: fset.Position(vn.Pos()),
5353
Text: fmt.Sprintf("%s is a global variable", formatCode(vn.Name, nil)),
5454
FromLinter: lint.Name(),
5555
})

0 commit comments

Comments
 (0)