From cd239498c0549ca690cab162d095d3840a749bb2 Mon Sep 17 00:00:00 2001 From: Marcelo Castagna Date: Fri, 24 Jan 2020 21:39:08 -0300 Subject: [PATCH] tray: cleanup code (#7011) --- src/Jackett.Tray/Main.cs | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/Jackett.Tray/Main.cs b/src/Jackett.Tray/Main.cs index 35a0e3d6e..f3c7a52bd 100644 --- a/src/Jackett.Tray/Main.cs +++ b/src/Jackett.Tray/Main.cs @@ -145,14 +145,7 @@ namespace Jackett.Tray { get { - if (File.Exists(ShortcutPath) || File.Exists(Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.Startup), "Jackett.lnk"))) - { - return true; - } - else - { - return false; - } + return File.Exists(ShortcutPath) || File.Exists(Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.Startup), "Jackett.lnk")); } set {