Inspectopedia
 
2024.3

Guard clause can be replaced with Kotlin's function call

Info
New
Last modified: 03 December 2024

Reports guard clauses that can be replaced with a function call.

Example:

After the quick-fix is applied: