Style/NestedTernaryOperator
autocorrection raises when ternaries have an if
statement between them
#12237
Labels
Style/NestedTernaryOperator
autocorrection raises when ternaries have an if
statement between them
#12237
If a nested ternary has a conditional between it and it's parent ternary, the cop raises
NoMethodError
For example
I have a fix ready, I will open a PR shortly
Expected behavior
The cop should autocorrect the example to
Actual behavior
The cop raises:
Steps to reproduce the problem
The example provided above will cause the issue to happen when running rubocop and autocorrect.
RuboCop version
The text was updated successfully, but these errors were encountered: