From 750dd6f7aaf1cae7c15accc96f1fa4a42e34ad09 Mon Sep 17 00:00:00 2001 From: erri120 Date: Fri, 1 Nov 2019 12:06:12 +0100 Subject: [PATCH] Fixed bad LINQ expression --- Wabbajack.Common/Utils.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Wabbajack.Common/Utils.cs b/Wabbajack.Common/Utils.cs index b66f7727..3c8a448c 100644 --- a/Wabbajack.Common/Utils.cs +++ b/Wabbajack.Common/Utils.cs @@ -29,7 +29,7 @@ namespace Wabbajack.Common public static bool IsMO2Running(string mo2Path) { Process[] processList = Process.GetProcesses(); - return processList.Select(process => (process.ProcessName == "ModOrganizer" && Path.GetDirectoryName(process.MainModule?.FileName) == mo2Path)).FirstOrDefault(); + return processList.Where(process => process.ProcessName == "ModOrganizer").Any(process => Path.GetDirectoryName(process.MainModule?.FileName) == mo2Path); } public static string LogFile { get; private set; }