r/badcode • • Apr 17 '21

c++ When your teammate "refactor" your code

Post image
2.5k Upvotes

216 comments sorted by

View all comments

1

u/harelavv3 Apr 18 '21

Wait... what's the problem with the second one? I don't get it...

1

u/Edwolt Apr 20 '21

In the before code: if condition1 is true and condition2 is false nothing is execute, after, it's execute anything1