Skip to content

Commit

Permalink
Update variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
uudashr committed Dec 7, 2024
1 parent ecddec5 commit 19f719b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gocognit.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ func generateDiagnostics(fset *token.FileSet, diags []diagnostic) []Diagnostic {

for _, diag := range diags {
pos := fset.Position(diag.Pos)
tracePos := DiagnosticPosition{
diagPos := DiagnosticPosition{
Offset: pos.Offset,
Line: pos.Line,
Column: pos.Column,
Expand All @@ -115,7 +115,7 @@ func generateDiagnostics(fset *token.FileSet, diags []diagnostic) []Diagnostic {
Inc: diag.Inc,
Nesting: diag.Nesting,
Text: diag.Text,
Pos: tracePos,
Pos: diagPos,
})
}

Expand Down

0 comments on commit 19f719b

Please sign in to comment.