From 713326768c6bd9a9640c0fe49d618c006e7c7a8c Mon Sep 17 00:00:00 2001 From: sakno Date: Wed, 10 Jul 2024 17:04:39 +0300 Subject: [PATCH] Code cleanup --- .../Threading/Tasks/TaskCompletionPipe.Queue.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/DotNext.Threading/Threading/Tasks/TaskCompletionPipe.Queue.cs b/src/DotNext.Threading/Threading/Tasks/TaskCompletionPipe.Queue.cs index f431ccc8f..3ec5909f3 100644 --- a/src/DotNext.Threading/Threading/Tasks/TaskCompletionPipe.Queue.cs +++ b/src/DotNext.Threading/Threading/Tasks/TaskCompletionPipe.Queue.cs @@ -72,7 +72,7 @@ internal void Invoke() private void AddCompletedTaskNode(LinkedTaskNode node) { Debug.Assert(Monitor.IsEntered(SyncRoot)); - Debug.Assert(node is { Task.IsCompleted: true }); + Debug.Assert(node.Task.IsCompleted); if (lastTask is null) {