Skip to content

Commit 12f00d6

Browse files
authored
Merge pull request #6317 from SuperGoodSoft/chore-stock-item-rubocop-lint
2 parents fa8e686 + 01e54fe commit 12f00d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/app/models/spree/stock_item.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ def conditional_variant_touch
106106
def should_touch_variant?
107107
# the variant_id changes from nil when a new stock location is added
108108
inventory_cache_threshold &&
109-
(saved_change_to_count_on_hand&.any? { |cache| cache < inventory_cache_threshold }) ||
109+
saved_change_to_count_on_hand&.any? { |cache| cache < inventory_cache_threshold } ||
110110
saved_change_to_variant_id?
111111
end
112112

0 commit comments

Comments
 (0)