From 4470d117e2e46aad71e51f52de2d8ef357e4cc4c Mon Sep 17 00:00:00 2001 From: Robert Joonas Date: Thu, 23 Jan 2025 16:29:47 +0100 Subject: [PATCH] write code more short --- lib/plausible/stats/query_result.ex | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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,