Remove now unnecessary inline rubocop config

This commit is contained in:
Maikel Linke
2022-02-25 10:46:51 +11:00
parent decab911bd
commit 1d15f35522
2 changed files with 0 additions and 4 deletions

View File

@@ -121,7 +121,6 @@ module Spree
when :integer
value.to_i
when :boolean
# rubocop:disable Style/NumericPredicate
if value.is_a?(FalseClass) ||
value.nil? ||
value == 0 ||
@@ -131,7 +130,6 @@ module Spree
else
true
end
# rubocop:enable Style/NumericPredicate
else
value
end

View File

@@ -143,9 +143,7 @@ module OpenFoodNetwork
end
def row(order, sku, description, quantity, amount, invoice_number, tax_type, opts = {})
# rubocop:disable Style/NumericPredicate
return nil if amount == 0
# rubocop:enable Style/NumericPredicate
[order.bill_address&.full_name,
order.email,