From 79ab93541a4a2da637dadec50ac8652e05164d2e Mon Sep 17 00:00:00 2001 From: Dagg Date: Fri, 10 Mar 2023 11:20:33 -0800 Subject: [PATCH] Remove variable since its only used once --- UnionPatcher.Gui/Forms/ModeSelectionForm.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/UnionPatcher.Gui/Forms/ModeSelectionForm.cs b/UnionPatcher.Gui/Forms/ModeSelectionForm.cs index e736259..ce45984 100644 --- a/UnionPatcher.Gui/Forms/ModeSelectionForm.cs +++ b/UnionPatcher.Gui/Forms/ModeSelectionForm.cs @@ -29,11 +29,10 @@ public class ModeSelectionForm : Form { private void openRemotePatcher(object sender, EventArgs e) { - OSPlatform platform = OSUtil.GetPlatform(); if (!Directory.Exists("scetool")) { // This will always occur on macOS, so don't show this message for macOS users. - if (platform != OSPlatform.OSX) Gui.CreateOkDialog("Workaround Triggered", ".NET could not locate the required files, triggering workaround."); + if (OSUtil.GetPlatform() != OSPlatform.OSX) Gui.CreateOkDialog("Workaround Triggered", ".NET could not locate the required files, triggering workaround."); Gui.CreateOkDialog("Workaround", "UnionPatcher RemotePatcher requires a staging folder on macOS or in special circumstances on Windows, please set this to the directory of the UnionPatcher app or executable!"); SelectFolderDialog dialog = new SelectFolderDialog();