Remove redundant checks in `do_stage_or_unstage_and_next` (#26364)

Release Notes:

- N/A
c147b58558João Marcos committed on 3/10/2025, 2:23:17 PM· committed by GitHubparent84fe1bf
2 files changedLine totals unavailable