feat: more implementations of partial code and cleanup
This commit is contained in:
@@ -173,7 +173,7 @@ defmodule BDS.Templates do
|
||||
end
|
||||
|
||||
defp unique_slug(project_id, base_slug, fallback, exclude_id \\ nil) do
|
||||
normalized = if base_slug in [nil, ""], do: fallback, else: base_slug
|
||||
normalized = if base_slug == "", do: fallback, else: base_slug
|
||||
|
||||
if slug_available?(project_id, normalized, exclude_id) do
|
||||
normalized
|
||||
|
||||
Reference in New Issue
Block a user