IgnoreNotFound returns nil on NotFound errors. All other values that are not NotFound errors or nil are returned unmodified.
(err error)
| 212 | // IgnoreNotFound returns nil on NotFound errors. |
| 213 | // All other values that are not NotFound errors or nil are returned unmodified. |
| 214 | func IgnoreNotFound(err error) error { |
| 215 | if apierrors.IsNotFound(err) { |
| 216 | return nil |
| 217 | } |
| 218 | return err |
| 219 | } |
| 220 | |
| 221 | // IgnoreAlreadyExists returns nil on AlreadyExists errors. |
| 222 | // All other values that are not AlreadyExists errors or nil are returned unmodified. |
no outgoing calls
searching dependent graphs…