wrapcheck
wrapcheck copied to clipboard
False-positive for anonymous functions
Wrapcheck throws an error for the next case:
import "errors"
func Test_AnonFunc(t *testing.T) {
test := func() error {
return errors.New("test")
}
fmt.Println(test())
}
error returned from external package is unwrapped: sig: func errors.New(text string) error
Thanks for the report. Will have a look when I get some time.
Bump on this. it is driving me a bit crazy.