diff --git a/lib/plausible/stats/query_result.ex b/lib/plausible/stats/query_result.ex index e96c0b8e3026..bc3bc7393c04 100644 --- a/lib/plausible/stats/query_result.ex +++ b/lib/plausible/stats/query_result.ex @@ -75,10 +75,7 @@ defmodule Plausible.Stats.QueryResult do _ -> main_query.skip_imported_reason end - imports_warning = - if imports_skip_reason in Map.keys(@imports_warnings) do - @imports_warnings[imports_skip_reason] - end + imports_warning = @imports_warnings[imports_skip_reason] %{ imports_included: imports_included,