wrapcheck icon indicating copy to clipboard operation
wrapcheck copied to clipboard

Lint error from internal packages

Open maguro opened this issue 1 year ago • 1 comments

I have functions that reside in an internal package that return error. I am getting the "error returned from external package is unwrapped" error even though it's internal. For example:

foo/stats.go:43:10: error returned from external package is unwrapped: sig: func 
acme.com/foo/internal.Bar(ctx context.Context, key string) (ok bool, err error)

maguro avatar Jul 14 '24 17:07 maguro

Is this call through an interface?

tomarrell avatar Jul 15 '24 08:07 tomarrell