Skip to content

Commit 970056a

Browse files
committed
SA4017: print user-friendly function names
1 parent 11e5f96 commit 970056a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

staticcheck/lint.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -3104,7 +3104,7 @@ fnLoop:
31043104
// special case for benchmarks in the fmt package
31053105
continue
31063106
}
3107-
report.Report(pass, ins, fmt.Sprintf("%s is a pure function but its return value is ignored", callee.Name()))
3107+
report.Report(pass, ins, fmt.Sprintf("%s is a pure function but its return value is ignored", callee.Object().Name()))
31083108
}
31093109
}
31103110
}

0 commit comments

Comments
 (0)