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 authored and andrzejkrzywda committed Sep 17, 2024
1 parent c999e22 commit fddc415
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 fddc415

Please sign in to comment.