Pattern: Redundant return
Issue: -
This rule checks for redundant return
expressions.
# bad
def some_method(some_arr)
return some_arr.size
end
# good
def some_method(some_arr)
some_arr.size
end
Attribute | Value |
---|---|
AllowMultipleReturnValues | false |