From fa4b0b1c76ebb3d81c18facdc16044d5ee5478c5 Mon Sep 17 00:00:00 2001 From: "NI\\akerezsi" Date: Wed, 11 Dec 2024 08:16:36 +0200 Subject: [PATCH] fix comments --- lib/mongo/url_parser.ex | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/lib/mongo/url_parser.ex b/lib/mongo/url_parser.ex index fc446b0..661469f 100644 --- a/lib/mongo/url_parser.ex +++ b/lib/mongo/url_parser.ex @@ -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