Skip to content

Commit

Permalink
Do not return true in service
Browse files Browse the repository at this point in the history
  • Loading branch information
marlena-b committed Sep 16, 2024
1 parent c6d4365 commit 949e7c8
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,9 @@ def call
end
.call

if unavailable_products.any?
raise OrderHasUnavailableProducts.new(unavailable_products)
end
true
if unavailable_products.any?
raise OrderHasUnavailableProducts.new(unavailable_products)
end
end

private
Expand Down

0 comments on commit 949e7c8

Please sign in to comment.