Skip to content

Commit

Permalink
build: add type constraint to avoid warning in IDEA (#966)
Browse files Browse the repository at this point in the history
  • Loading branch information
erikgb authored May 23, 2024
1 parent 03a5849 commit c104c5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/controller/stas/workload_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ func (r *PodReconciler) SetupWithManager(mgr ctrl.Manager) error {
}

predicates := []predicate.Predicate{
predicate.Not(managedByImageScanner),
predicate.Not[client.Object](managedByImageScanner),
}
if r.ScanNamespaceExcludeRegexp != nil {
predicates = append(predicates, predicate.Not(namespaceMatchRegexp(r.ScanNamespaceExcludeRegexp)))
Expand Down

0 comments on commit c104c5e

Please sign in to comment.