Skip to content

Commit

Permalink
chore: code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
cylkdev committed Feb 10, 2023
1 parent f31fdc6 commit 41fd08b
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions lib/factory_ex/association_builder.ex
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,6 @@ defmodule FactoryEx.AssociationBuilder do
|> create_related_params(module.schema(), expand(params))
end

defp expand(struct) when is_struct(struct) do
struct
end

defp expand(params) when is_map(params) or is_list(params) do
params |> Enum.map(&unwrap/1) |> Map.new()
end
Expand Down

0 comments on commit 41fd08b

Please sign in to comment.