From 9acde41b820af163ed3044e3d8d191af82ce6d48 Mon Sep 17 00:00:00 2001 From: McMistrzYT <56406996+McMistrzYT@users.noreply.github.com> Date: Thu, 9 Feb 2023 18:58:58 +0100 Subject: [PATCH] Update UnionPatcher.Gui/Forms/FilePatchForm.cs Co-authored-by: Josh --- UnionPatcher.Gui/Forms/FilePatchForm.cs | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/UnionPatcher.Gui/Forms/FilePatchForm.cs b/UnionPatcher.Gui/Forms/FilePatchForm.cs index db1bb4f..a7499d8 100644 --- a/UnionPatcher.Gui/Forms/FilePatchForm.cs +++ b/UnionPatcher.Gui/Forms/FilePatchForm.cs @@ -132,14 +132,7 @@ public class FilePatchForm : Form { Gui.CreateOkDialog("Error occurred while patching", "An error occured while patching:\n" + e); return; } - - // Purely for the dialog box to show the correct URL. Actual patcher has this too. - // If server URL contains a trailing slash, loop until it's gone. - string formattedUrl = this.serverUrl.Text; - while (formattedUrl.EndsWith('/')) - { - formattedUrl = formattedUrl.Remove(formattedUrl.Length - 1); - } + this.serverUrl.Text = this.serverUrl.Text.TrimEnd('/'); Gui.CreateOkDialog("Success!", "The Server URL has been patched to " + formattedUrl); }