Skip to content

Commit 37a2052

Browse files
committed
Update ProcessCleanup.cs
1 parent 08247d2 commit 37a2052

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/DiffEngine/Process/ProcessCleanup.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ public static class ProcessCleanup
66
static Func<IEnumerable<ProcessCommand>> findAll;
77
static Func<int, bool> tryTerminateProcess;
88

9-
#pragma warning disable CS8618
109
static ProcessCleanup()
1110
{
1211
if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
@@ -30,6 +29,7 @@ static ProcessCleanup()
3029

3130
public static IReadOnlyCollection<ProcessCommand> Commands => commands;
3231

32+
[MemberNotNull(nameof(commands))]
3333
public static void Refresh() =>
3434
commands = FindAll().ToList();
3535

0 commit comments

Comments
 (0)