Simplify case expression.

This commit is contained in:
Dillon Kearns 2022-02-03 16:38:54 -08:00
parent c9f78e7c5f
commit 1c9d6340f1

View File

@ -844,8 +844,8 @@ nextStepToEffect site contentCache config model ( updatedStaticResponsesModel, n
-- TODO handle error?
Bytes.Encode.encode (Bytes.Encode.unsignedInt8 0)
in
case Result.map3 (\a b c -> ( a, b, c )) pageFoundResult renderedResult siteDataResult of
Ok ( pageFound, renderedOrApiResponse, siteData ) ->
case renderedResult of
Ok renderedOrApiResponse ->
case renderedOrApiResponse of
PageServerResponse.RenderPage responseInfo rendered ->
{ route = payload.path |> Path.toRelative