From 970056abd0403ddf7ea4ef7f41b3a3e45fec7e6c Mon Sep 17 00:00:00 2001 From: Dominik Honnef Date: Mon, 28 Mar 2022 02:57:26 +0200 Subject: [PATCH] SA4017: print user-friendly function names --- staticcheck/lint.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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())) } } }