[ 
https://issues.apache.org/jira/browse/YUNIKORN-1690?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

yichiu reassigned YUNIKORN-1690:
--------------------------------

    Assignee: yichiu

> 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
>            Assignee: yichiu
>            Priority: Trivial
>              Labels: newbie
>
> 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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to