Inspectopedia
 
2024.3

Redundant nullable return type

Warning
New
Last modified: 03 December 2024

Reports functions and variables with nullable return type which never return or become null.

Example:

After the quick-fix is applied: