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 += "/"; }