Skip to content

Commit

Permalink
fix(dotnet sdk): fix incorrect input to string.EndsWith causing com…
Browse files Browse the repository at this point in the history
…pile error in Unity 2020.3
  • Loading branch information
jasonboukheir committed Nov 19, 2022
1 parent 70a6fa9 commit c5101ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Runtime/Algorand.Unity/Http/UnityHttpClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit c5101ea

Please sign in to comment.