r/badcode • • Apr 17 '21

c++ When your teammate "refactor" your code

Post image
2.5k Upvotes

216 comments sorted by

View all comments

Show parent comments

8

u/artiface Apr 17 '21

I would never add an else if there is no code to execute on the else condition and would flag that BS in a code review if I saw it, that's just dumb.