chore: fix credo

This commit is contained in:
Zach Daniel 2023-04-27 14:01:02 -04:00
parent fbd2b2f50c
commit c83316e88b

View file

@ -180,7 +180,9 @@ defmodule Ash.Flow do
case value do case value do
:error -> :error ->
if not is_nil(arg.default) do if is_nil(arg.default) do
{:cont, {:ok, acc}}
else
value = value =
case arg.default do case arg.default do
{m, f, a} -> {m, f, a} ->
@ -194,8 +196,6 @@ defmodule Ash.Flow do
end end
{:cont, {:ok, Map.put(acc, arg.name, value)}} {:cont, {:ok, Map.put(acc, arg.name, value)}}
else
{:cont, {:ok, acc}}
end end
{:ok, value} -> {:ok, value} ->