'return' statement can be implicit

Last modified: 03 December 2024

Reports return statements at the end of closures which can be made implicit.

Groovy closures implicitly return the value of the last statement in them.

Example:

After the quick-fix is applied: