Skip to content

Commit 01e54fe

Browse files
committed
Appease Rubocop
On two of my recent PRs, Rubocop got mad at the code in this commit body even though neither of my PRs touched this file. Thanks, Rubocop.
1 parent fa8e686 commit 01e54fe

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)