Changed safe_concat to unsafe

This commit is contained in:
Danil Negrienko 2024-12-18 13:34:39 -05:00
parent a47e331b25
commit 313868ca94
2 changed files with 3 additions and 3 deletions

View File

@ -11,8 +11,8 @@ defmodule UkraineTaxidEx.Base do
alias UkraineTaxidEx.{Base, Serialize, Commons}
@parse_module (Module.split(__MODULE__) ++ ["Parser"]) |> Module.safe_concat()
# def parse_module(), do: @parse_module
@parse_module (Module.split(__MODULE__) ++ ["Parser"]) |> Module.concat()
def parse_module(), do: @parse_module
@impl Base
@spec to_map(data :: t()) :: map()

View File

@ -17,7 +17,7 @@ defmodule UkraineTaxidEx.BaseParser do
@type string_or_ok() :: String.t() | {:ok, String.t()}
@type struct_or_error() :: {:ok, term} | {:error, atom()}
@struct_module Module.split(__MODULE__) |> Enum.slice(0..-2//1) |> Module.safe_concat()
@struct_module Module.split(__MODULE__) |> Enum.slice(0..-2//1) |> Module.concat()
# def struct_module(), do: @struct_module
defp to_struct(map), do: struct(@struct_module, map)