We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 08247d2 commit 37a2052Copy full SHA for 37a2052
1 file changed
src/DiffEngine/Process/ProcessCleanup.cs
@@ -6,7 +6,6 @@ public static class ProcessCleanup
6
static Func<IEnumerable<ProcessCommand>> findAll;
7
static Func<int, bool> tryTerminateProcess;
8
9
-#pragma warning disable CS8618
10
static ProcessCleanup()
11
{
12
if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
@@ -30,6 +29,7 @@ static ProcessCleanup()
30
29
31
public static IReadOnlyCollection<ProcessCommand> Commands => commands;
32
+ [MemberNotNull(nameof(commands))]
33
public static void Refresh() =>
34
commands = FindAll().ToList();
35
0 commit comments