misc: simplify by directly returning bool

Signed-off-by: Hidde Beydals <hidde@hhh.computer>
This commit is contained in:
Hidde Beydals 2023-10-09 13:36:22 +02:00
parent 691d925add
commit 3a0c27926e
No known key found for this signature in database
GPG Key ID: 979F380FC2341744
1 changed files with 1 additions and 1 deletions

View File

@ -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