[
https://issues.apache.org/jira/browse/HDDS-3887?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
ASF GitHub Bot updated HDDS-3887:
---------------------------------
Labels: pull-request-available (was: )
> 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
> Priority: Minor
> Labels: pull-request-available
>
> 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]