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
When a one-line rescue is used as an array element, v1.79 suggests removing the parentheses, but doing so is a syntax error. Likely as a result of #14355?
[(foorescuenil),]
Expected behavior
No Style/RedundantParentheses offenses.
Actual behavior
test.rb:2:3: C: [Correctable] Style/RedundantParentheses: Don't use parentheses around a one-line rescue.
(foo rescue nil),
^^^^^^^^^^^^^^^^