repos/scheduler: Add comments and simplify if-else in runUpdateLoop
Created by: indradhanush
The code in the else-if block is not related to the condition in the if-block. As a result they can be separate if-blocks and also as a positive effect allow us to return early from the function.
Co-authored-by: Ryan Slade [email protected]
Test plan
No change in functionality. This PR includes some comments and a tiny reorganisation for better readability.