From eb379903b88b32b8dc1570b41e1acb929358ebf2 Mon Sep 17 00:00:00 2001
From: neuecc <ils@neue.cc>
Date: Tue, 5 May 2020 05:29:52 +0900
Subject: [PATCH] some fix

---
 Assets/UniRx.Async/Internal/ContinuationQueue.cs | 2 +-
 Assets/UniRx.Async/UniTaskCompletionSource.cs    | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/Assets/UniRx.Async/Internal/ContinuationQueue.cs b/Assets/UniRx.Async/Internal/ContinuationQueue.cs
index f09be8a..a9f5cc9 100644
--- a/Assets/UniRx.Async/Internal/ContinuationQueue.cs
+++ b/Assets/UniRx.Async/Internal/ContinuationQueue.cs
@@ -6,7 +6,7 @@ using System.Threading;
 
 namespace UniRx.Async.Internal
 {
-    internal class ContinuationQueue
+    internal sealed class ContinuationQueue
     {
         const int MaxArrayLength = 0X7FEFFFFF;
         const int InitialSize = 16;
diff --git a/Assets/UniRx.Async/UniTaskCompletionSource.cs b/Assets/UniRx.Async/UniTaskCompletionSource.cs
index de72a47..4a0414f 100644
--- a/Assets/UniRx.Async/UniTaskCompletionSource.cs
+++ b/Assets/UniRx.Async/UniTaskCompletionSource.cs
@@ -178,7 +178,7 @@ namespace UniRx.Async
         public TResult GetResult(short token)
         {
             ValidateToken(token);
-            if (!(completedCount == 0))
+            if (completedCount == 0)
             {
                 throw new InvalidOperationException("not yet completed.");
             }