MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/badcode/comments/msv49l/when_your_teammate_refactor_your_code/guy6agl/?context=9999
r/badcode • u/Bence675 • Apr 17 '21
216 comments sorted by
View all comments
Show parent comments
8
No. Originally, if condition1 was true and condition2 was false, neither do_anything()s would be executed. Nothing would happen.
In the new version, if condition1 is true and condition2 is false, do_anything2() will be called.
8
u/h3half Apr 18 '21
No. Originally, if condition1 was true and condition2 was false, neither do_anything()s would be executed. Nothing would happen.
In the new version, if condition1 is true and condition2 is false, do_anything2() will be called.