Przeglądaj źródła

Fix ReSharper's "UseNullPropagation"

marodev 4 lat temu
rodzic
commit
1b11e79ee5

+ 1 - 4
AsyncRx.NET/System.Reactive.Async.Concurrency/System/Reactive/Concurrency/AsyncScheduler.cs

@@ -231,10 +231,7 @@ namespace System.Reactive.Concurrency
                         throw new InvalidOperationException(); // REVIEW: No support for blocking.
                     }
 
-                    if (_error != null)
-                    {
-                        _error.Throw();
-                    }
+                    _error?.Throw();
                 }
 
                 public void OnCompleted(Action continuation)