File tree 5 files changed +6
-0
lines changed
5 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ linters:
13
13
- dupl
14
14
- errcheck
15
15
- errname
16
+ - errorlint
16
17
- exportloopref
17
18
- gochecknoinits
18
19
- gocritic
Original file line number Diff line number Diff line change @@ -40,6 +40,7 @@ func (e *DescriptorIntegrityError) Error() string {
40
40
// Is compares e against target. If target is a DescriptorIntegrityError and matches e or target
41
41
// has a zero value ID, true is returned.
42
42
func (e * DescriptorIntegrityError ) Is (target error ) bool {
43
+ //nolint:errorlint // don't compare wrapped errors in Is()
43
44
t , ok := target .(* DescriptorIntegrityError )
44
45
if ! ok {
45
46
return false
@@ -62,6 +63,7 @@ func (e *ObjectIntegrityError) Error() string {
62
63
// Is compares e against target. If target is a ObjectIntegrityError and matches e or target has a
63
64
// zero value ID, true is returned.
64
65
func (e * ObjectIntegrityError ) Is (target error ) bool {
66
+ //nolint:errorlint // don't compare wrapped errors in Is()
65
67
t , ok := target .(* ObjectIntegrityError )
66
68
if ! ok {
67
69
return false
Original file line number Diff line number Diff line change @@ -67,6 +67,7 @@ func (e *SignatureNotFoundError) Error() string {
67
67
// Is compares e against target. If target is a SignatureNotFoundError and matches e or target has
68
68
// a zero value ID, true is returned.
69
69
func (e * SignatureNotFoundError ) Is (target error ) bool {
70
+ //nolint:errorlint // don't compare wrapped errors in Is()
70
71
t , ok := target .(* SignatureNotFoundError )
71
72
if ! ok {
72
73
return false
Original file line number Diff line number Diff line change @@ -52,6 +52,7 @@ func (e *SignatureNotValidError) Unwrap() error {
52
52
// Is compares e against target. If target is a SignatureNotValidError and matches e or target has
53
53
// a zero value ID, true is returned.
54
54
func (e * SignatureNotValidError ) Is (target error ) bool {
55
+ //nolint:errorlint // don't compare wrapped errors in Is()
55
56
t , ok := target .(* SignatureNotValidError )
56
57
if ! ok {
57
58
return false
Original file line number Diff line number Diff line change @@ -103,6 +103,7 @@ func (e *unexpectedDataTypeError) Error() string {
103
103
}
104
104
105
105
func (e * unexpectedDataTypeError ) Is (target error ) bool {
106
+ //nolint:errorlint // don't compare wrapped errors in Is()
106
107
t , ok := target .(* unexpectedDataTypeError )
107
108
if ! ok {
108
109
return false
You can’t perform that action at this time.
0 commit comments