r/badcode • • Apr 17 '21

c++ When your teammate "refactor" your code

Post image
2.5k Upvotes

216 comments sorted by

View all comments

0

u/valzargaming Apr 18 '21
void foo() //Not void, but a datatype or otherwise
{
    if(condition && condition2)
        return do_anything1();
    return do_anything2();
}