chengyouling commented on code in PR #4709:
URL: 
https://github.com/apache/servicecomb-java-chassis/pull/4709#discussion_r1945798867


##########
handlers/handler-loadbalance/src/main/java/org/apache/servicecomb/loadbalance/filter/InstancePropertyDiscoveryFilter.java:
##########
@@ -42,8 +42,13 @@ public int getOrder() {
 
   @Override
   public boolean enabled() {
-    return 
environment.getProperty("servicecomb.loadbalance.filter.instanceProperty.enabled",
-        boolean.class, true);
+
+    if (enabled == null) {

Review Comment:
   下面类似的地方统一用三元表达式处理下



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to