misc: simplify by directly returning bool
Signed-off-by: Hidde Beydals <hidde@hhh.computer>
This commit is contained in:
parent
691d925add
commit
3a0c27926e
|
@ -366,7 +366,7 @@ func (r *GitRepositoryReconciler) shouldNotify(oldObj, newObj *sourcev1.GitRepos
|
|||
if resErr != nil && res == sreconcile.ResultEmpty && newObj.Status.Artifact != nil {
|
||||
// Convert to Generic error and check for ignore.
|
||||
if ge, ok := resErr.(*serror.Generic); ok {
|
||||
return ge.Ignore == true
|
||||
return ge.Ignore
|
||||
}
|
||||
}
|
||||
return false
|
||||
|
|
Loading…
Reference in New Issue