mirror of
https://github.com/Jackett/Jackett.git
synced 2025-09-17 17:34:09 +02:00
Use Array.Empty and fix a few multiple enumerations (#14194)
This commit is contained in:
@@ -131,7 +131,7 @@ namespace Jackett.Updater
|
||||
if (!(updateLocation.EndsWith("\\") || updateLocation.EndsWith("/")))
|
||||
updateLocation += Path.DirectorySeparatorChar;
|
||||
|
||||
var pids = new int[] { };
|
||||
var pids = Array.Empty<int>();
|
||||
if (options.KillPids != null)
|
||||
{
|
||||
var pidsStr = options.KillPids.Split(',').Where(pid => !string.IsNullOrWhiteSpace(pid)).ToArray();
|
||||
|
Reference in New Issue
Block a user