x/tools/go/analysis/passes/nilness: detect wrapping of nil errors #32808
Labels
Analysis
Issues related to static analysis (vet, x/tools/go/analysis)
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Tools
This label describes issues relating to any tools in the x/tools repository.
Milestone
As of
4874f863
, thenilness
check doesn't seem to trigger onfmt.Errorf
calls with an error that is proven nil. Example:Same with the
%v
verb. I feel like most people would not want to actually produce anothing: <nil>
or anothing: %!w(<nil>)
message here.Inspired by dominikh/go-tools#529.
The text was updated successfully, but these errors were encountered: