mirror of
https://github.com/plausible/analytics.git
synced 2024-12-23 09:33:19 +03:00
String.to_atom/1
is safe to do at compile-time (#3813)
otherwise random compile-time errors may occur
This commit is contained in:
parent
52f584efa9
commit
bca617d0bf
@ -95,7 +95,7 @@ defmodule Plausible.Billing.Feature do
|
|||||||
|> Enum.map(fn mod ->
|
|> Enum.map(fn mod ->
|
||||||
Module.split(mod)
|
Module.split(mod)
|
||||||
|> List.last()
|
|> List.last()
|
||||||
|> String.to_existing_atom()
|
|> String.to_atom()
|
||||||
end)
|
end)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user