Skip to content

Commit ba64875

Browse files
committed
chore: Fix latest lint offences
Three easy, peasy ones
1 parent 1ea53fc commit ba64875

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

core/app/models/spree/stock/estimator.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ def shipping_methods(package)
6464
calculator.available?(package) &&
6565
(calculator.preferences[:currency].blank? ||
6666
calculator.preferences[:currency] == package.shipment.order.currency)
67-
end
67+
end
6868
end
6969
end
7070
end

core/app/models/spree/store.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def available_locales=(locales)
4747
if locales.empty?
4848
super(nil)
4949
else
50-
super(locales.map(&:to_s).join(","))
50+
super(locales.join(","))
5151
end
5252
end
5353

core/app/models/spree/variant/pricing_options.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ def country_iso
101101
# @return [String] cache key to be used in views
102102
#
103103
def cache_key
104-
desired_attributes.values.select(&:present?).map(&:to_s).join("/")
104+
desired_attributes.values.select(&:present?).join("/")
105105
end
106106
end
107107
end

0 commit comments

Comments
 (0)