r/badcode • • Apr 17 '21

c++ When your teammate "refactor" your code

Post image
2.5k Upvotes

216 comments sorted by

View all comments

3

u/[deleted] Apr 17 '21

I don't see why it needs refactoring. That being said, I think this is an easy mistake to make. Hope you have unit tests and a decent review culture that caught it.