Tartarus0zm opened a new pull request #1140:
URL: https://github.com/apache/hadoop-ozone/pull/1140


   ## What changes were proposed in this pull request?
   HealthyPipelineSafeModeRule#validate
   ```
   protected boolean validate() {
     if (currentHealthyPipelineCount >= healthyPipelineThresholdCount) {
       return true;
     }
     return false;
   }
   ```
   this method is fat,I think direct return is ok. like this
   ```
   return currentHealthyPipelineCount >= healthyPipelineThresholdCount;
   ```
   ## What is the link to the Apache JIRA
   
   https://issues.apache.org/jira/projects/HDDS/issues/HDDS-3887
   
   Please replace this section with the link to the Apache JIRA)
   
   ## How was this patch tested?
   
   No testing required
   


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

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



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to