From c34658742adf53218a4e878f974ca23660082594 Mon Sep 17 00:00:00 2001 From: TzeYiing Date: Thu, 16 Nov 2023 03:09:05 +0800 Subject: [PATCH] chore: formatting --- lib/logflare/cluster/postgres_strategy.ex | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/logflare/cluster/postgres_strategy.ex b/lib/logflare/cluster/postgres_strategy.ex index e81373847..e5cedde3f 100644 --- a/lib/logflare/cluster/postgres_strategy.ex +++ b/lib/logflare/cluster/postgres_strategy.ex @@ -115,7 +115,8 @@ defmodule Logflare.Cluster.PostgresStrategy do ~s|postgresql://#{username}:#{password}@#{hostname}:#{port}/#{database}| end -defp clean_cookie(cookie) when is_atom(cookie), do: cookie |> Atom.to_string() |> clean_cookie() + defp clean_cookie(cookie) when is_atom(cookie), do: cookie |> Atom.to_string() |> clean_cookie() + defp clean_cookie(str) when is_binary(str) do String.replace(str, ~r/\W/, "_") |> dbg() end