Inspectopedia
 
2024.3

Ternary expression can be replaced with safe call

Info
Code Style
New
Last modified: 03 December 2024

Reports ternary expressions which can be replaced by a safe call.

Example:

After the quick-fix is applied: