Skip to content

Commit a6f4763

Browse files
authored
Merge pull request #726 from ilansh/patch-1
Update cronjob_controller.go
2 parents 9dd6c0e + b39c966 commit a6f4763

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)