lib/rubocop/cop/lint/ambiguous_operator.rb in rubocop-0.84.0 vs lib/rubocop/cop/lint/ambiguous_operator.rb in rubocop-0.85.0
- old
+ new
@@ -61,10 +61,11 @@
ast.each_node(:send).find do |send_node|
first_argument = send_node.first_argument
first_argument &&
- offense_position?(first_argument, diagnostic) && unary_operator?(first_argument, diagnostic)
+ offense_position?(first_argument, diagnostic) &&
+ unary_operator?(first_argument, diagnostic)
end
end
def alternative_message(diagnostic)
operator = diagnostic.location.source