From bca617d0bfb92595333066d1e2b770513da3bacc Mon Sep 17 00:00:00 2001 From: hq1 Date: Thu, 22 Feb 2024 20:51:21 +0100 Subject: [PATCH] `String.to_atom/1` is safe to do at compile-time (#3813) otherwise random compile-time errors may occur --- lib/plausible/billing/feature.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/plausible/billing/feature.ex b/lib/plausible/billing/feature.ex index 79ad4b302..5d5c3468f 100644 --- a/lib/plausible/billing/feature.ex +++ b/lib/plausible/billing/feature.ex @@ -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