Skip to content

Commit

Permalink
chore: formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Ziinc committed Nov 15, 2023
1 parent 3b01318 commit c346587
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/logflare/cluster/postgres_strategy.ex
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c346587

Please sign in to comment.