fix: reworking some code smell issues

This commit is contained in:
2026-06-26 16:34:07 +02:00
parent 68de265137
commit d1acfd4d71
42 changed files with 661 additions and 129 deletions

View File

@@ -160,7 +160,7 @@ defmodule BDS.Scripting.Capabilities.Util do
def truthy?(value), do: value in [true, "true", 1, 1.0, "1"]
@spec pad2(integer()) :: String.t()
def pad2(value), do: value |> Integer.to_string() |> String.pad_leading(2, "0")
defdelegate pad2(value), to: BDS.Strings
@spec blank_to_nil(term()) :: term()
def blank_to_nil(nil), do: nil