Re:My Beef with RuboCop
by xorcist on Thursday November 19, 2020 @08:32AM
(#25149252)
Strongly agree.
The point of stating an explicit nil in the article must be to reduce the chance of future changes erroneously leaving something on the stack, without realizing the implicit nil.
The early return in your version makes it much more obvious why it is written the way it is.
The point of stating an explicit nil in the article must be to reduce the chance of future changes erroneously leaving something on the stack, without realizing the implicit nil.
The early return in your version makes it much more obvious why it is written the way it is.