Pattern: Unnecessary return
keyword
Issue: -
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.
Pattern: Unnecessary return
keyword
Issue: -
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.