wip(growth): change from with to case
All checks were successful
continuous-integration/drone/pr Build is passing

This commit is contained in:
João Paulo Dubas 2024-06-04 14:36:20 +00:00
parent 58f14c0346
commit 2fedb4ecf0
Signed by: joao.dubas
SSH Key Fingerprint: SHA256:V1mixgOGRc/YMhGx/DNkOSmJxgA2vHNrDZEk3wt/kOA

View File

@ -228,10 +228,12 @@ defmodule Growth.Indicators.Download do
end
def fetch!(url) do
with {:ok, %{status: 200, body: body}} <- Req.get(url) do
case Req.get(url) do
{:ok, %{status: 200, body: body}} ->
body
else
_ -> raise("fetch failed for url #{url}")
_ ->
raise("fetch failed for url #{url}")
end
end