Skip to content

Files

Latest commit

 

History

History
11 lines (6 loc) · 381 Bytes

UnnecessaryReturnKeyword.md

File metadata and controls

11 lines (6 loc) · 381 Bytes

Pattern: Unnecessary return keyword

Issue: -

Description

In Groovy, the return keyword is often optional. If a statement is the last line in a method or closure then you do not need to have the return keyword.

Further Reading