Skip to content

Commit

Permalink
Fix code format
Browse files Browse the repository at this point in the history
  • Loading branch information
arnodirlam committed May 19, 2024
1 parent ab0061d commit 424bd6b
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion lib/refactory.ex
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,13 @@ defmodule Refactory do
struct!(type, deep_merge(Map.from_struct(left), Map.from_struct(right)))
end

defp deep_resolve(_key, %{__struct__: type}, %{__struct__: other_type}, _concat_lists?, _struct_overrides?) do
defp deep_resolve(
_key,
%{__struct__: type},
%{__struct__: other_type},
_concat_lists?,
_struct_overrides?
) do
raise ArgumentError, "#{type} cannot be merged with #{other_type}."
end

Expand Down

0 comments on commit 424bd6b

Please sign in to comment.