Skip to content

Commit fb80c67

Browse files
committed
refactor: remove redundant branch in watch registration
1 parent c6015d3 commit fb80c67

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

operator-framework-core/src/main/java/io/javaoperatorsdk/operator/processing/event/internal/CustomResourceEventSource.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,6 @@ public void start() {
5555
var w = crClient.inAnyNamespace().watch(this);
5656
watches.add(w);
5757
log.debug("Registered controller {} -> {} for any namespace", resClass, w);
58-
} else if (targetNamespaces.isEmpty()) {
59-
var w = client.watch(this);
60-
watches.add(w);
61-
log.debug(
62-
"Registered controller {} -> {} for namespace {}", resClass, w, crClient.getNamespace());
6358
} else {
6459
targetNamespaces.forEach(
6560
ns -> {

0 commit comments

Comments
 (0)