Skip to content

Commit

Permalink
Fix warning
Browse files Browse the repository at this point in the history
  • Loading branch information
alexkerezsini committed Dec 11, 2024
1 parent 2450eec commit 9314707
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/mongo/url_parser.ex
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,8 @@ defmodule Mongo.UrlParser do
end
end

defp resolve_srv_url(frags), do: frags

defp build_params(orig_options, txt_record) do
[orig_options, txt_record, "ssl=true"]
|> Enum.filter(&(&1 != nil))
Expand All @@ -181,8 +183,6 @@ defmodule Mongo.UrlParser do
end
end

defp resolve_srv_url(frags), do: frags

@spec get_host_srv([{term, term, term, term}]) :: {:ok, String.t()}
defp get_host_srv(srv) when is_list(srv) do
hosts = Enum.map_join(srv, ",", fn {_, _, port, host} -> "#{host}:#{port}" end)
Expand Down

0 comments on commit 9314707

Please sign in to comment.