Wilfred Spiegelenburg created YUNIKORN-1690: -----------------------------------------------
Summary: remove redundant if else in sorter Key: YUNIKORN-1690 URL: https://issues.apache.org/jira/browse/YUNIKORN-1690 Project: Apache YuniKorn Issue Type: Improvement Components: core - scheduler Reporter: Wilfred Spiegelenburg The sorters use an if else construct that is not needed: {code:java} if leftPriority > rightPriority { return true } else if leftPriority < rightPriority {{code} The else is not needed as we have a return inside the if. Same construct shows in multiple places. -- This message was sent by Atlassian Jira (v8.20.10#820010) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@yunikorn.apache.org For additional commands, e-mail: dev-h...@yunikorn.apache.org