1
0
mirror of https://github.com/redis/go-redis.git synced 2025-07-29 17:41:15 +03:00

Update golangci-lint to v1.32

This commit is contained in:
Mitsuo Heijo
2020-11-17 23:08:15 +09:00
parent d4f01eda28
commit f5a1707d3c
7 changed files with 9 additions and 15 deletions

View File

@ -50,16 +50,6 @@ func isLower(s string) bool {
return true
}
func Unwrap(err error) error {
u, ok := err.(interface {
Unwrap() error
})
if !ok {
return nil
}
return u.Unwrap()
}
//------------------------------------------------------------------------------
func WithSpan(ctx context.Context, name string, fn func(context.Context, trace.Span) error) error {