mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
Remove now unnecessary inline rubocop config
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user