chore: refactored areas around to_existing_atom/1 uses

This commit is contained in:
2026-05-01 17:25:59 +02:00
parent 3505355980
commit 07ce5f8b4d
16 changed files with 1150 additions and 373 deletions

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)