Skip to content

Commit

Permalink
fix comments
Browse files Browse the repository at this point in the history
  • Loading branch information
alexkerezsini committed Dec 11, 2024
1 parent 9314707 commit fa4b0b1
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions lib/mongo/url_parser.ex
Original file line number Diff line number Diff line change
Expand Up @@ -167,10 +167,12 @@ defmodule Mongo.UrlParser do

defp resolve_srv_url(frags), do: frags

defp build_params(orig_options, nil) do
"#{orig_options}&ssl=true"
end

defp build_params(orig_options, txt_record) do
[orig_options, txt_record, "ssl=true"]
|> Enum.filter(&(&1 != nil))
|> Enum.join("&")
"#{orig_options}&#{txt_record}&ssl=true"
end

defp resolve_txt_record(url_char) do
Expand Down

0 comments on commit fa4b0b1

Please sign in to comment.