From c6fecca8e7bb00e8005e949f0c2e52017b7f77cf Mon Sep 17 00:00:00 2001 From: Anton Kolesnyk <41349689+antkmsft@users.noreply.github.com> Date: Wed, 29 Nov 2023 12:52:45 -0800 Subject: [PATCH] Remove unnecessary condition (#5210) Co-authored-by: Anton Kolesnyk --- sdk/core/azure-core/src/http/url.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk/core/azure-core/src/http/url.cpp b/sdk/core/azure-core/src/http/url.cpp index e9c3228f1..f815c3b6a 100644 --- a/sdk/core/azure-core/src/http/url.cpp +++ b/sdk/core/azure-core/src/http/url.cpp @@ -219,7 +219,7 @@ std::string Url::GetUrlWithoutQuery(bool relative) const { if (!relative) { - if (m_encodedPath.empty() || m_encodedPath[0] != '/') + if (m_encodedPath[0] != '/') { url += "/"; }