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
Fixesrubocop#7829.
This PR fixes an error for `Style/OneLineConditional`
when one of the branches contains `next` keyword.
`SelfNode` was introduced by rubocop#7729 to prevent `NoMethodErrror`,
but it is unnecessary because the cop that caused the error were
fixed.
Fixes#7829.
This PR fixes an error for `Style/OneLineConditional`
when one of the branches contains `next` keyword.
`SelfNode` was introduced by #7729 to prevent `NoMethodErrror`,
but it is unnecessary because the cop that caused the error were
fixed.
Note: This isn't a dupe of #7728. This is the same error, but for different code.
Expected behavior
When autocorrecting in Style/OneLineConditional you should not receive any errors
Actual behavior
Autocorrect fails with this error:
Steps to reproduce the problem
Autocorrect this:
RuboCop version
master
The text was updated successfully, but these errors were encountered: