Revert breaks inside if statements