Skip to content

Commit

Permalink
chore: fix mix check warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
c4710n committed Jan 12, 2024
1 parent e3e986e commit 21c6bab
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/cozy_params/changeset.ex
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ defmodule CozyParams.Changeset.Metadata do
end

defmodule CozyParams.Changeset do
@moduledoc false
@moduledoc """
Changeset tailored for this lib.
"""

alias CozyParams.Changeset.Metadata

Expand Down Expand Up @@ -59,6 +61,7 @@ defmodule CozyParams.Changeset do
|> Enum.reduce(params, fn {field, func_ast}, acc ->
if Map.has_key?(params, field) do
{func, []} = Code.eval_quoted(func_ast)
# credo:disable-for-next-line
update_in(acc, [field], fn value -> apply(func, [value]) end)
else
params
Expand Down

0 comments on commit 21c6bab

Please sign in to comment.