This is an automated email from the ASF dual-hosted git repository.

amichair pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/aries-rsa.git

commit 5fa954a9b60d735f17762156069b66aed5ba29fb
Author: Amichai Rothman <[email protected]>
AuthorDate: Mon Mar 30 00:14:54 2026 +0300

    Remove redundant null check
---
 .../java/org/apache/aries/rsa/discovery/local/LocalDiscovery.java     | 4 ----
 1 file changed, 4 deletions(-)

diff --git 
a/discovery/local/src/main/java/org/apache/aries/rsa/discovery/local/LocalDiscovery.java
 
b/discovery/local/src/main/java/org/apache/aries/rsa/discovery/local/LocalDiscovery.java
index 89cae9df..1cdc0289 100644
--- 
a/discovery/local/src/main/java/org/apache/aries/rsa/discovery/local/LocalDiscovery.java
+++ 
b/discovery/local/src/main/java/org/apache/aries/rsa/discovery/local/LocalDiscovery.java
@@ -74,10 +74,6 @@ public class LocalDiscovery implements BundleListener {
     }
 
     protected void processExistingBundles(Bundle[] bundles) {
-        if (bundles == null) {
-            return;
-        }
-
         for (Bundle b : bundles) {
             if (b.getState() == Bundle.ACTIVE) {
                 addDeclaredRemoteServices(b);

Reply via email to