Remove variable since its only used once

This commit is contained in:
Dagg 2023-03-10 11:20:33 -08:00
commit 79ab93541a
No known key found for this signature in database
GPG key ID: 35F1082DE618E967

View file

@ -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();