mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-31 06:31:41 +00:00
Address violation of Rubocop Style/NumericPredicate
This commit is contained in:
@@ -31,7 +31,7 @@ module Spree
|
||||
end
|
||||
|
||||
def in_stock?
|
||||
count_on_hand > 0
|
||||
count_on_hand.positive?
|
||||
end
|
||||
|
||||
# Tells whether it's available to be included in a shipment
|
||||
|
||||
Reference in New Issue
Block a user