Comment by Stefan B. on "When you come across an old piece of code, that's not written well or that could've been written better, what do you do?" | Hashnode
If it's just coding style I tend to leave it as it is. Coding style changes all the time. So I would end in rewriting it again in some months for no real reason.
If I have to work on it (f.e. add something, fix a bug) I refactor it.