3 ms·
Wow, I've been using Ruby for a decade and have never run into this. If you are dealing with a codebase written by someone else, then Rubocop probably has a rul
by jb3689 3y ago
Wow, I've been using Ruby for a decade and have never run into this. If you are dealing with a codebase written by someone else, then Rubocop probably has a rule for detecting these gotchas. I'd run it across the whole thing and burn down the flags.
- emmelaich 3y agoFWIW, I applied Rubocop, it said: Lint/Void: Variable bonus used in void context. Web search for 'ruby void context' finds a bunch of WTFs.