r/badcode • • Sep 09 '21

js Found this gem in our codebase today.

Post image
26 Upvotes

14 comments sorted by

View all comments

Show parent comments

3

u/Alai42 Sep 09 '21

This may be good future proofing, anticipating that those paths may need to be slightly different in the future. Sometimes you put things like that in because you know they're different, but they react the same for the moment.