소스 검색

Fixing issue in GroupBy.

Bart De Smet 8 년 전
부모
커밋
c7a70b18ac
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      AsyncRx.NET/System.Reactive.Async.Linq/System/Reactive/Linq/Operators/GroupBy.cs

+ 2 - 2
AsyncRx.NET/System.Reactive.Async.Linq/System/Reactive/Linq/Operators/GroupBy.cs

@@ -263,9 +263,9 @@ namespace System.Reactive.Linq
         public static (IAsyncObserver<TSource>, IAsyncDisposable) GroupBy<TSource, TKey>(IAsyncObserver<IGroupedAsyncObservable<TKey, TSource>> observer, IAsyncDisposable subscription, Func<TSource, TKey> keySelector, int capacity)
         {
             if (observer == null)
-                if (subscription == null)
+                throw new ArgumentNullException(nameof(observer));
+            if (subscription == null)
                     throw new ArgumentNullException(nameof(subscription));
-            throw new ArgumentNullException(nameof(observer));
             if (keySelector == null)
                 throw new ArgumentNullException(nameof(keySelector));
             if (capacity < 0)