Skip to content

Commit

Permalink
Remove unused param
Browse files Browse the repository at this point in the history
  • Loading branch information
lukaszreszke committed Jul 29, 2024
1 parent 4878e71 commit 198efcf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rails_application/app/controllers/products_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def update
private

def create_product(product_id, name)
command_bus.(create_product_cmd(product_id, name))
command_bus.(create_product_cmd(product_id))
command_bus.(name_product_cmd(product_id, name))
end

Expand All @@ -78,7 +78,7 @@ def set_product_name(product_id, name)
command_bus.(name_product_cmd(product_id, name))
end

def create_product_cmd(product_id, name)
def create_product_cmd(product_id)
ProductCatalog::RegisterProduct.new(product_id: product_id)
end

Expand Down

0 comments on commit 198efcf

Please sign in to comment.