Replaces the if-else statement with the equivalent statement using a conditional expression if possible.