Skip to content

Commit 6f75cdd

Browse files
committed
Format
1 parent 460c62b commit 6f75cdd

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

lib/dx.ex

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -98,10 +98,17 @@ defmodule Dx do
9898

9999
defp load_all_data_reqs(eval, fun) do
100100
case fun.(eval) do
101-
{:not_loaded, data_reqs} -> Eval.load_data_reqs(eval, data_reqs) |> load_all_data_reqs(fun)
102-
{:ok, result, _binds} -> {:ok, result, eval.cache}
103-
{:error, :timeout} -> {:error, %Dx.Error.Timeout{configured_timeout: eval.loader_options[:timeout]}}
104-
other -> other
101+
{:not_loaded, data_reqs} ->
102+
Eval.load_data_reqs(eval, data_reqs) |> load_all_data_reqs(fun)
103+
104+
{:ok, result, _binds} ->
105+
{:ok, result, eval.cache}
106+
107+
{:error, :timeout} ->
108+
{:error, %Dx.Error.Timeout{configured_timeout: eval.loader_options[:timeout]}}
109+
110+
other ->
111+
other
105112
end
106113
end
107114

0 commit comments

Comments
 (0)