lib/rubocop/cop/lint/ambiguous_range.rb in rubocop-1.20.0 vs lib/rubocop/cop/lint/ambiguous_range.rb in rubocop-1.21.0
- old
+ new
@@ -81,10 +81,10 @@
def acceptable?(node)
node.begin_type? ||
node.basic_literal? ||
node.variable? || node.const_type? ||
- node.call_type? && acceptable_call?(node)
+ (node.call_type? && acceptable_call?(node))
end
def acceptable_call?(node)
return true if node.unary_operation?