uses teh return value for the replace

This commit is contained in:
Madpeter 2020-05-01 22:00:43 +01:00
parent 39104fbdae
commit 06e33b2147

View file

@ -21,7 +21,7 @@ namespace BSB.Commands.script
if(attempt_endpoint.Contains("https://github.com/")) if(attempt_endpoint.Contains("https://github.com/"))
{ {
attempt_endpoint.Replace("https://github.com/", "https://raw.githubusercontent.com/"); attempt_endpoint = attempt_endpoint.Replace("https://github.com/", "https://raw.githubusercontent.com/");
} }
var client = new RestClient(attempt_endpoint); var client = new RestClient(attempt_endpoint);