Code Gardening is the practice of making small improvements as you see them while you are working, even if they are not directly connected to the feature or defect you’re currently addressing.
Tidying things up as you go is never wrong - just ask any gardener or that friend of yours with the immaculate house.
Tidy esthetic code is provably easier to read, easier to understand and easier to reason about.
Most importantly, you should be gardening because code can be beautiful … and it should be.