Skip to content

Commit f5f3668

Browse files
committed
Fix variable name
1 parent 4787e32 commit f5f3668

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

errchkjson.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ func (e *errchkjson) handleJSONMarshal(pass *analysis.Pass, ce *ast.CallExpr, fn
119119
return
120120
}
121121
if _, ok := err.(noexported); ok {
122-
pass.Reportf(n.Pos(), "Error argument passed to `%s` does not contain any exported field", fnName)
122+
pass.Reportf(ce.Pos(), "Error argument passed to `%s` does not contain any exported field", fnName)
123123
}
124124
// Only care about unsafe types if they are assigned to the blank identifier.
125125
if blankIdentifier {

0 commit comments

Comments
 (0)