Skip to content

Commit 1d2b5d0

Browse files
committed
tidy
1 parent 6627995 commit 1d2b5d0

1 file changed

Lines changed: 1 addition & 8 deletions

File tree

  • tests/runtime-async/async/future-cancel-read

tests/runtime-async/async/future-cancel-read/test.cs

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,7 @@ public static async Task StartReadThenCancel(FutureReader<uint> future, FutureRe
3030

3131
await signal.Read();
3232

33-
if(!task.IsCompleted)
34-
{
35-
Debug.Assert(task.Cancel() == CancelCode.Cancelled);
36-
}
37-
else
38-
{
39-
Debug.Assert(task.Cancel() == CancelCode.Completed);
40-
}
33+
Debug.Assert(task.Cancel() == CancelCode.Completed);
4134
}
4235
}
4336
}

0 commit comments

Comments
 (0)