Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MATH-1572 - Simplify Conditions: #176

Closed
wants to merge 1 commit into from
Closed

MATH-1572 - Simplify Conditions: #176

wants to merge 1 commit into from

Conversation

arturobernalg
Copy link
Member

  • Simplifiable boolean expression
  • Simplifiable conditional expression
  • Redundant 'if' statement

@coveralls
Copy link

coveralls commented Apr 13, 2021

Coverage Status

Coverage increased (+0.01%) to 90.717% when pulling 904abc0 on arturobernalg:feature/MATH-1572 into e29fd60 on apache:master.

* Simplifiable boolean expression
* Simplifiable conditional expression
* Redundant 'if' statement
}

return true;
return values.length != x.length + y.length; // There are no ties.
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The comment is then wrong, isn't it? Before it checked if there are no ties (values.length == x.length + y.length) and the comment was related to the false return value. Now it directly checks if there are ties which is basically the name of the method so that the comment could be simply removed, right?

@arturobernalg arturobernalg deleted the feature/MATH-1572 branch August 5, 2021 17:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants