Transmogrifier: Cleanup obsolete handling of `"contentMap": null`

This commit is contained in:
Haelwenn (lanodan) Monnier 2024-01-26 17:10:10 +01:00
parent 558b421079
commit 799891d359
No known key found for this signature in database
1 changed files with 0 additions and 4 deletions

View File

@ -336,10 +336,6 @@ def fix_tag(%{"tag" => %{} = tag} = object) do
def fix_tag(object), do: object
def fix_content_map(%{"contentMap" => nil} = object) do
Map.drop(object, ["contentMap"])
end
# content map usually only has one language so this will do for now.
def fix_content_map(%{"contentMap" => content_map} = object) do
content_groups = Map.to_list(content_map)