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
The autocorrect method should not assume that parentheses means
there are arguments. If the block is called with empty
parentheses, we replace it with a `yield` without parentheses.
…bocop#3293)
The autocorrect method should not assume that parentheses means
there are arguments. If the block is called with empty
parentheses, we replace it with a `yield` without parentheses.
Expected behavior
working code (actually just "yield" instead of "yield)" )
Actual behavior
This code
https://gist.github.com/anonymous/4c9e468632534f8bbfd0b30bab44fb50
is transformed into
this code
https://gist.github.com/anonymous/9bad599e05ca0264f53a89f664f19032
RuboCop version
The text was updated successfully, but these errors were encountered: