You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Naming/BlockForwarding: Use anonymous block forwarding
Lint/UselessAssignment: Useless assignment to variable - block. but the block is actually used on line 3 (after correction, possibly fixed implicitely when BlockForwarding is fixed)
The following code gets refactored in a wrong way by
rubocop -A
(withrubocop-rails
installed:Source
Misbehavior
Naming/BlockForwarding: Use anonymous block forwarding
Lint/UselessAssignment: Useless assignment to variable - block.
but the block is actually used on line 3 (after correction, possibly fixed implicitely when BlockForwarding is fixed)The code becomes:
--> Line 2 is now ineffective and the
pass_to_bar
crashes then given a nil block.RuboCop version
The text was updated successfully, but these errors were encountered: