Skip to content

Commit b39c966

Browse files
authored
Update cronjob_controller.go
Fix ignoreNotFound function
1 parent 91533c0 commit b39c966

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/book/src/cronjob-tutorial/testdata/project/controllers/cronjob_controller.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,9 @@ and requeuing in the mean time won't help.
7878
*/
7979
func ignoreNotFound(err error) error {
8080
if apierrs.IsNotFound(err) {
81-
return err
81+
return nil
8282
}
83-
return nil
83+
return err
8484
}
8585

8686
// +kubebuilder:docs-gen:collapse=ignoreNotFound

0 commit comments

Comments
 (0)