From d5d4a15e7b12e9c3feada6274b5fec0bd4d35333 Mon Sep 17 00:00:00 2001 From: Dennis <16547088+soligen2010@users.noreply.github.com> Date: Fri, 3 May 2024 17:42:32 -0400 Subject: [PATCH] Fix changes spaces that cause test case to fail Removed the 4 extra spaces that caused the generated file to vary from the verified file --- src/NSwag.CodeGeneration.CSharp/Templates/Client.Class.liquid | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/NSwag.CodeGeneration.CSharp/Templates/Client.Class.liquid b/src/NSwag.CodeGeneration.CSharp/Templates/Client.Class.liquid index 2796e07eb8..7b4c957ed6 100644 --- a/src/NSwag.CodeGeneration.CSharp/Templates/Client.Class.liquid +++ b/src/NSwag.CodeGeneration.CSharp/Templates/Client.Class.liquid @@ -293,9 +293,9 @@ var urlBuilder_ = new System.Text.StringBuilder(); {% if HasBaseClass == true and GenerateBaseUrlProperty == false -%} - if (!string.IsNullOrEmpty(BaseUrl)) urlBuilder_.Append(BaseUrl); + if (!string.IsNullOrEmpty(BaseUrl)) urlBuilder_.Append(BaseUrl); {% else -%} - if (!string.IsNullOrEmpty(_baseUrl)) urlBuilder_.Append(_baseUrl); + if (!string.IsNullOrEmpty(_baseUrl)) urlBuilder_.Append(_baseUrl); {% endif -%} // Operation Path: "{{ operation.Path }}" {% if operation.Path contains "{" -%}