From 22c0693bebdf65346f11ab914db87b35a1166fe5 Mon Sep 17 00:00:00 2001 From: Kristina Lim Date: Thu, 14 May 2020 04:45:52 +0800 Subject: [PATCH] Address violation of Rubocop Style/NumericPredicate --- app/models/spree/stock_item.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/spree/stock_item.rb b/app/models/spree/stock_item.rb index 29ec2401fa..5c9f390567 100644 --- a/app/models/spree/stock_item.rb +++ b/app/models/spree/stock_item.rb @@ -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