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

penghui pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/pulsar.git


The following commit(s) were added to refs/heads/master by this push:
     new 9394ed4  Clear redundant code (#11071)
9394ed4 is described below

commit 9394ed4263520b66093aa8c7f3a94c32349f399b
Author: linlinnn <[email protected]>
AuthorDate: Thu Jul 1 09:03:57 2021 +0800

    Clear redundant code (#11071)
---
 .../src/main/java/org/apache/pulsar/broker/service/BrokerService.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/pulsar-broker/src/main/java/org/apache/pulsar/broker/service/BrokerService.java
 
b/pulsar-broker/src/main/java/org/apache/pulsar/broker/service/BrokerService.java
index 7cd60e1..1e50618 100644
--- 
a/pulsar-broker/src/main/java/org/apache/pulsar/broker/service/BrokerService.java
+++ 
b/pulsar-broker/src/main/java/org/apache/pulsar/broker/service/BrokerService.java
@@ -1053,7 +1053,7 @@ public class BrokerService implements Closeable, 
ZooKeeperCacheListener<Policies
                     log.info("Configuring proxy-url {} with protocol {}", 
data.getProxyServiceUrl(),
                             data.getProxyProtocol());
                 }
-                if (data.getListenerName() != null && 
StringUtils.isNotBlank(data.getListenerName())) {
+                if (StringUtils.isNotBlank(data.getListenerName())) {
                     clientBuilder.listenerName(data.getListenerName());
                     log.info("Configuring listenerName {}", 
data.getListenerName());
                 }

Reply via email to