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."); }