Address violation of Rubocop Style/NumericPredicate

This commit is contained in:
Kristina Lim
2020-05-14 04:45:52 +08:00
committed by Luis Ramos
parent d1725014c4
commit 22c0693beb

View File

@@ -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