@@ -21,8 +21,8 @@ func NewAnalyzer(logger logutils.Log, doc string, formatter Formatter) *analysis
21
21
Doc : doc ,
22
22
Run : func (pass * analysis.Pass ) (any , error ) {
23
23
for _ , file := range pass .Files {
24
- position , isGoFiles := goanalysis .GetGoFilePosition (pass , file )
25
- if ! isGoFiles {
24
+ position , isGoFile := goanalysis .GetGoFilePosition (pass , file )
25
+ if ! isGoFile {
26
26
continue
27
27
}
28
28
@@ -40,11 +40,11 @@ func NewAnalyzer(logger logutils.Log, doc string, formatter Formatter) *analysis
40
40
newName := filepath .ToSlash (position .Filename )
41
41
oldName := newName + ".orig"
42
42
43
- theDiff := diff .Diff (oldName , input , newName , output )
43
+ patch := diff .Diff (oldName , input , newName , output )
44
44
45
- err = internal .ExtractDiagnosticFromPatch (pass , file , string ( theDiff ) , logger )
45
+ err = internal .ExtractDiagnosticFromPatch (pass , file , patch , logger )
46
46
if err != nil {
47
- return nil , fmt .Errorf ("can't extract issues from %s diff output %q: %w" , formatter .Name (), string ( theDiff ) , err )
47
+ return nil , fmt .Errorf ("can't extract issues from %s diff output %q: %w" , formatter .Name (), patch , err )
48
48
}
49
49
}
50
50
}
0 commit comments