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

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


The following commit(s) were added to refs/heads/master by this push:
     new 3a167a2f1 [type:refactor]Refactor redundant code(#4147) (#4148)
3a167a2f1 is described below

commit 3a167a2f1bbcc6079620ca4aa4eaebbe1b398d4f
Author: WuLang <[email protected]>
AuthorDate: Sun Oct 30 12:36:19 2022 +0800

    [type:refactor]Refactor redundant code(#4147) (#4148)
    
    Co-authored-by: xiaoyu <[email protected]>
---
 .../shenyu/plugin/apache/dubbo/cache/ApacheDubboConfigCache.java       | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git 
a/shenyu-plugin/shenyu-plugin-dubbo/shenyu-plugin-apache-dubbo/src/main/java/org/apache/shenyu/plugin/apache/dubbo/cache/ApacheDubboConfigCache.java
 
b/shenyu-plugin/shenyu-plugin-dubbo/shenyu-plugin-apache-dubbo/src/main/java/org/apache/shenyu/plugin/apache/dubbo/cache/ApacheDubboConfigCache.java
index 50d50fa25..77bf1e086 100644
--- 
a/shenyu-plugin/shenyu-plugin-dubbo/shenyu-plugin-apache-dubbo/src/main/java/org/apache/shenyu/plugin/apache/dubbo/cache/ApacheDubboConfigCache.java
+++ 
b/shenyu-plugin/shenyu-plugin-dubbo/shenyu-plugin-apache-dubbo/src/main/java/org/apache/shenyu/plugin/apache/dubbo/cache/ApacheDubboConfigCache.java
@@ -118,8 +118,7 @@ public final class ApacheDubboConfigCache extends 
DubboConfigCache {
             return true;
         }
         return !Objects.equals(dubboRegisterConfig.getProtocol(), 
registryConfig.getProtocol())
-                || !Objects.equals(dubboRegisterConfig.getRegister(), 
registryConfig.getAddress())
-                || !Objects.equals(dubboRegisterConfig.getProtocol(), 
registryConfig.getProtocol());
+                || !Objects.equals(dubboRegisterConfig.getRegister(), 
registryConfig.getAddress());
     }
     
     /**

Reply via email to