Skip to content

Commit

Permalink
SA4017: print user-friendly function names
Browse files Browse the repository at this point in the history
  • Loading branch information
dominikh committed Mar 28, 2022
1 parent 11e5f96 commit 970056a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion staticcheck/lint.go
Original file line number Diff line number Diff line change
Expand Up @@ -3104,7 +3104,7 @@ fnLoop:
// special case for benchmarks in the fmt package
continue
}
report.Report(pass, ins, fmt.Sprintf("%s is a pure function but its return value is ignored", callee.Name()))
report.Report(pass, ins, fmt.Sprintf("%s is a pure function but its return value is ignored", callee.Object().Name()))
}
}
}
Expand Down

0 comments on commit 970056a

Please sign in to comment.