Skip to content

Commit

Permalink
Discard unused arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
lukaszreszke committed Aug 6, 2024
1 parent 2b6450c commit eb6369f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ecommerce/ordering/lib/ordering/order.rb
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,11 @@ def remove_item(product_id)
apply ItemRemovedFromBasket.new(data: { order_id: @id, product_id: product_id })
end

on OrderPlaced do |event|
on OrderPlaced do |_|
@state = State.new(:accepted)
end

on OrderExpired do |event|
on OrderExpired do |_|
@state = State.expired
end

Expand All @@ -86,7 +86,7 @@ def remove_item(product_id)
@state = State.submitted
end

on OrderRejected do |event|
on OrderRejected do |_|
@state = State.draft
end

Expand Down

0 comments on commit eb6369f

Please sign in to comment.