Convert if-else into conditional expression

Convert an if-else return or assignment expression into a conditional expression.

Refactoring (Convert)
P42 for VS Code
P42 for GitHub
Convert if-else into conditional expression

Related Code Actions

Learn More

Available In