String.to_atom/1 is safe to do at compile-time (#3813)

otherwise random compile-time errors may occur
This commit is contained in:
hq1 2024-02-22 20:51:21 +01:00 committed by GitHub
parent 52f584efa9
commit bca617d0bf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -95,7 +95,7 @@ defmodule Plausible.Billing.Feature do
|> Enum.map(fn mod ->
Module.split(mod)
|> List.last()
|> String.to_existing_atom()
|> String.to_atom()
end)
end