fix: reworking some code smell issues

This commit is contained in:
hugo committed 2026-06-26 16:34:07 +02:00
1 parent 68de265137
commit d1acfd4d71
42 files changed
+661 -129

No files matched your search

@@ -310,5 +310,5 @@ defmodule BDS.Desktop.ShellLive.ImportEditor.AnalysisState do
@spec translate_phase(term()) :: term()
def translate_phase(other), do: other
defp present?(value), do: value not in [nil, ""]
defp present?(value), do: BDS.Values.present?(value)
end
@@ -284,5 +284,5 @@ defmodule BDS.Desktop.ShellLive.ImportEditor.TaxonomyEditing do
def maybe_put_option(opts, _key, nil), do: opts
def maybe_put_option(opts, key, value), do: Keyword.put(opts, key, value)
defp present?(value), do: value not in [nil, ""]
defp present?(value), do: BDS.Values.present?(value)
end