Skip to content

Commit

Permalink
Credo warning
Browse files Browse the repository at this point in the history
  • Loading branch information
macobo committed Jun 5, 2024
1 parent 9913f4d commit 89e3e63
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/plausible/google/search_console/filters.ex
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ defmodule Plausible.Google.SearchConsole.Filters do
end

defp transform_filter(_property, [:is, "visit:screen", devices]) when is_list(devices) do
expression = devices |> Enum.map(&search_console_device/1) |> Enum.join("|")
expression = Enum.map_join(devices, "|", &search_console_device/1)
%{dimension: "device", operator: "includingRegex", expression: expression}
end

Expand Down
2 changes: 2 additions & 0 deletions lib/plausible/stats/filters/query_parser.ex
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
defmodule Plausible.Stats.Filters.QueryParser do
@moduledoc false

alias Plausible.Stats.Filters

def parse(params) when is_map(params) do
Expand Down
2 changes: 0 additions & 2 deletions lib/plausible/stats/imported/base.ex
Original file line number Diff line number Diff line change
Expand Up @@ -143,8 +143,6 @@ defmodule Plausible.Stats.Imported.Base do
end
end

defp do_decide_custom_prop_table(_query), do: nil

defp do_decide_custom_prop_table(query, property) do
has_required_name_filter? =
query.filters
Expand Down

0 comments on commit 89e3e63

Please sign in to comment.