lib/rubocop/cop/minitest/refute_equal.rb in rubocop-minitest-0.20.1 vs lib/rubocop/cop/minitest/refute_equal.rb in rubocop-minitest-0.21.0
- old
+ new
@@ -42,11 +42,10 @@
end
private
def preferred_usage(first_arg, second_arg, custom_message = nil)
- [first_arg, second_arg, custom_message]
- .compact.map(&:source).join(', ')
+ [first_arg, second_arg, custom_message].compact.map(&:source).join(', ')
end
def original_usage(first_part, custom_message)
[first_part, custom_message].compact.join(', ')
end