Code Inspection: 'if' can be replaced with 'match' expression
Configure inspections: Settings | Editor | Inspections
Show intention actions: AltEnter
Reports the if
statements inside if-elseif-else
constructs that use strict comparisons (===
) and could be replaced with match
expressions.
Place the caret at the highlighted line and press AltEnter or click
.
Click the arrow next to the inspection you want to suppress and select the necessary suppress action.