Tidy up the code (#12116)

Small follow-ups for https://github.com/zed-industries/zed/pull/12063
and https://github.com/zed-industries/zed/pull/12103

Release Notes:

- N/A
c4e87444e7Kirill Bulatov committed on 5/22/2024, 11:36:15 AM· committed by GitHubparentc440f3a
9 files changedLine totals unavailable