tartarus created HDDS-3887:
------------------------------

             Summary: Remove redundant code for HealthyPipelineSafeModeRule
                 Key: HDDS-3887
                 URL: https://issues.apache.org/jira/browse/HDDS-3887
             Project: Hadoop Distributed Data Store
          Issue Type: Improvement
          Components: SCM
    Affects Versions: 0.5.0
            Reporter: tartarus
            Assignee: tartarus


HealthyPipelineSafeModeRule#validate
{code:java}
protected boolean validate() {
  if (currentHealthyPipelineCount >= healthyPipelineThresholdCount) {
    return true;
  }
  return false;
}{code}
this method is fat,I think direct return is ok. like this

 
{code:java}
return currentHealthyPipelineCount >= healthyPipelineThresholdCount;
{code}
 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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

Reply via email to