[CodeFactor] Apply fixes (#6005)

Co-authored-by: codefactor-io <support@codefactor.io>
This commit is contained in:
DecorativeFamily
2024-11-07 10:16:27 +03:30
committed by GitHub
parent 45febe3fff
commit c4b490e46d
12 changed files with 25 additions and 25 deletions

View File

@@ -1,4 +1,4 @@
using Avalonia;
using Avalonia;
using Avalonia.ReactiveUI;
using v2rayN.Desktop.Common;
@@ -25,7 +25,7 @@ internal class Program
if (Utils.IsWindows())
{
var exePathKey = Utils.GetMd5(Utils.GetExePath());
var rebootas = (Args ?? new string[] { }).Any(t => t == Global.RebootAs);
var rebootas = (Args ?? Array.Empty<string>()).Any(t => t == Global.RebootAs);
ProgramStarted = new EventWaitHandle(false, EventResetMode.AutoReset, exePathKey, out bool bCreatedNew);
if (!rebootas && !bCreatedNew)
{