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 cop Style/IfUnlessModifier tests for being part of an assignment to add parenthesis, but that is way too naive. Being part of just about any operator expression won't work:
foo || if bar
baz
end
# autocorrected to:
foo || baz if bar
The cop
Style/IfUnlessModifier
tests for being part of an assignment to add parenthesis, but that is way too naive. Being part of just about any operator expression won't work:See also: #8281
The text was updated successfully, but these errors were encountered: