lib/rubocop/cop/style/ternary_parentheses.rb in rubocop-0.93.0 vs lib/rubocop/cop/style/ternary_parentheses.rb in rubocop-0.93.1
- old
+ new
@@ -190,10 +190,10 @@
# Handle English "not", e.g. 'not foo ? a : b'
(child.send_type? && child.prefix_not?)
end
def_node_matcher :method_name, <<~PATTERN
- {($:defined? (send nil? _) ...)
+ {($:defined? _ ...)
(send {_ nil?} $_ _ ...)}
PATTERN
def correct_parenthesized(corrector, condition)
corrector.remove(condition.loc.begin)