You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@yunikorn.apache.org by "Wilfred Spiegelenburg (Jira)" <ji...@apache.org> on 2023/04/13 23:27:00 UTC

[jira] [Created] (YUNIKORN-1690) remove redundant if else in sorter

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-unsubscribe@yunikorn.apache.org
For additional commands, e-mail: dev-help@yunikorn.apache.org