chore: refactored areas around to_existing_atom/1 uses

This commit is contained in:
hugo committed 2026-05-01 17:25:59 +02:00
1 parent 3505355980
commit 07ce5f8b4d
16 files changed
+1150 -373

No files matched your search

+2 -4
View File
@@ -262,12 +262,10 @@ defmodule BDS.Posts.RebuildFromFiles do
end
@doc false
def parse_post_status(status) when is_atom(status), do: status
def parse_post_status(status), do: String.to_existing_atom(status)
def parse_post_status(status), do: BDS.BoundedAtoms.post_status(status, :draft)
@doc false
def parse_translation_status(status) when is_atom(status), do: status
def parse_translation_status(status), do: String.to_existing_atom(status)
def parse_translation_status(status), do: BDS.BoundedAtoms.translation_status(status, :draft)
@doc false
def progress_callback(opts), do: ProgressReporter.callback(opts)