Skip to content

Commit 9fd5c8d

Browse files
stewartjarednormanbenjaminwilkjrigasofiabesenski4
committed
Fixup linter errors in InMemoryOrderUpdater
Co-Authored-By: Jared Norman <[email protected]> Co-Authored-By: benjamin wil <[email protected]> Co-Authored-By: Kendra Riga <[email protected]> Co-Authored-By: Sofia Besenski <[email protected]>
1 parent 7e76070 commit 9fd5c8d

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

core/app/models/spree/in_memory_order_updater.rb

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
module Spree
44
class InMemoryOrderUpdater
55
attr_reader :order
6+
67
delegate :payments, :line_items, :adjustments, :all_adjustments, :shipments, :quantity, to: :order
78

89
def initialize(order)
@@ -26,7 +27,8 @@ def recalculate(persist: true)
2627
update_shipments
2728
recalculate_shipment_state
2829
end
29-
Spree::Bus.publish :order_recalculated, order: order
30+
31+
Spree::Bus.publish(:order_recalculated, order:)
3032

3133
persist_totals if persist
3234
end
@@ -238,8 +240,8 @@ def log_state_change(name)
238240
order.state_changes.new(
239241
previous_state: old_state,
240242
next_state: new_state,
241-
name: name,
242-
user_id: order.user_id
243+
user_id: order.user_id,
244+
name:
243245
)
244246
end
245247
end

0 commit comments

Comments
 (0)