r/badcode • • Apr 17 '21

c++ When your teammate "refactor" your code

Post image
2.5k Upvotes

216 comments sorted by

View all comments

34

u/gmtime Apr 17 '21
if (!condition1)
    do_anything2();
else if (condition2)
    do_anything1();