lib/rubocop/cop/style/ternary_parentheses.rb in rubocop-1.26.1 vs lib/rubocop/cop/style/ternary_parentheses.rb in rubocop-1.27.0
- old
+ new
@@ -182,11 +182,10 @@
redundant_parentheses_enabled?
end
def unsafe_autocorrect?(condition)
condition.children.any? do |child|
- unparenthesized_method_call?(child) ||
- below_ternary_precedence?(child)
+ unparenthesized_method_call?(child) || below_ternary_precedence?(child)
end
end
def unparenthesized_method_call?(child)
/^[a-z]/i.match?(method_name(child)) && !child.parenthesized?