From c5101eab7a304993f8c320634a09146769ee2a0d Mon Sep 17 00:00:00 2001 From: Jason Elie Bou Kheir <5115126+jasonboukheir@users.noreply.github.com> Date: Sat, 19 Nov 2022 15:33:03 -0800 Subject: [PATCH] fix(dotnet sdk): fix incorrect input to `string.EndsWith` causing compile error in Unity 2020.3 --- Runtime/Algorand.Unity/Http/UnityHttpClient.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Runtime/Algorand.Unity/Http/UnityHttpClient.cs b/Runtime/Algorand.Unity/Http/UnityHttpClient.cs index b9b404159..89456541a 100644 --- a/Runtime/Algorand.Unity/Http/UnityHttpClient.cs +++ b/Runtime/Algorand.Unity/Http/UnityHttpClient.cs @@ -61,8 +61,8 @@ TimeSpan timeout private static Uri FormatAddress(string address) { - if (!address.EndsWith('/')) - address += '/'; + if (!address.EndsWith("/")) + address += "/"; var addressUri = new Uri(address); if (!addressUri.IsAbsoluteUri) throw new ArgumentException("Given host must be an absolute path.", nameof(address));