Skip to content

Commit 3cf36b1

Browse files
chore: remove unused functions
1 parent baa408f commit 3cf36b1

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

pkg/utils/errors.go

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -108,21 +108,3 @@ func IsCRDNotFoundError(err error) bool {
108108

109109
return true
110110
}
111-
112-
// IgnoreCRDNotFound returns nil on "CRD not found" errors.
113-
// All other values that are not "CRD not found" errors or nil are returned unmodified.
114-
func IgnoreCRDNotFound(err error) error {
115-
if IsCRDNotFoundError(err) {
116-
return nil
117-
}
118-
return err
119-
}
120-
121-
// IgnoreObjectOrCRDNotFound returns nil on NotFound and "CRD not found" errors.
122-
// All other values that are not NotFound or "CRD not found" errors or nil are returned unmodified.
123-
func IgnoreObjectOrCRDNotFound(err error) error {
124-
if apierrors.IsNotFound(err) || IsCRDNotFoundError(err) {
125-
return nil
126-
}
127-
return err
128-
}

0 commit comments

Comments
 (0)