1
0
mirror of https://github.com/Artemis-RGB/Artemis synced 2025-12-12 21:38:38 +00:00

Fix namespaces

This commit is contained in:
Diogo Trindade 2023-09-04 15:56:59 +01:00
parent 8a1b302e48
commit 625fff4b73
2 changed files with 2 additions and 6 deletions

View File

@ -1,7 +1,4 @@
using System; using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using Artemis.Core.Services; using Artemis.Core.Services;
namespace Artemis.Core.Modules; namespace Artemis.Core.Modules;

View File

@ -3,7 +3,6 @@ using System.Collections.Generic;
using System.Collections.Immutable; using System.Collections.Immutable;
using System.IO; using System.IO;
using System.Linq; using System.Linq;
using System.Numerics;
using System.Threading; using System.Threading;
namespace Artemis.Core.Services; namespace Artemis.Core.Services;
@ -115,7 +114,7 @@ public static partial class ProcessMonitor
lock (LOCK) lock (LOCK)
{ {
return _processes.Values.Any(x => Match(x, processName, processLocation)); return _processes.Values.Any(x => IsProcessRunning(x, processName, processLocation));
} }
} }
@ -132,7 +131,7 @@ public static partial class ProcessMonitor
} }
} }
private static bool Match(ProcessInfo info, string? processName, string? processLocation) private static bool IsProcessRunning(ProcessInfo info, string? processName, string? processLocation)
{ {
if (processName != null && processLocation != null) if (processName != null && processLocation != null)
return string.Equals(info.ProcessName, processName, StringComparison.InvariantCultureIgnoreCase) && return string.Equals(info.ProcessName, processName, StringComparison.InvariantCultureIgnoreCase) &&