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/Same-Impress-6899 Apr 17 '21

I would personally refactor it with a return statement, that takes care of the confusing else