I would leave the existing code as it is. You could perhaps modify it when next you are working on that area, and then only if it can be justified on the basis of speed and/or clarity.
And WRT speed, I have not tested, so others could comment on whether there is a meaningful difference, if any at all.
edit immediately after posting: And one should ensure there are tests in place to ensure the code functions correctly after a change.
In reply to Re: Refactoring just to refactor?
by swl
in thread Refactoring just to refactor?
by Lady_Aleena
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |