liubao68 commented on code in PR #3188:
URL: 
https://github.com/apache/servicecomb-java-chassis/pull/3188#discussion_r922799907


##########
clients/service-center-client/src/main/java/org/apache/servicecomb/service/center/client/ServiceCenterRegistration.java:
##########
@@ -149,20 +152,29 @@ public void execute() {
     }
   }
 
-  private void dealIsSwaggerDifferent(Microservice newMicroservice) {
-    if (isListEquals(newMicroservice.getSchemas(), microservice.getSchemas())) 
{
-      return;
+  private boolean isSwaggerDifferent(Microservice newMicroservice) {

Review Comment:
   Do not mix coverAndIgnore and isSwaggerDifferent, they have different 
meaning. 
   
   Move it up
   
   ```
             boolean swaggerDifferent = isSwaggerDifferent(newMicroservice);
             if (swaggerDifferent  ){
                if( canRewriteSwagger()) {
                }...
             } else 
   ```



-- 
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