diff --git a/staticcheck/lint.go b/staticcheck/lint.go index 65c5a88a..661211f3 100644 --- a/staticcheck/lint.go +++ b/staticcheck/lint.go @@ -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())) } } }