Explorar o código

Fix ReSharper's "UseNullPropagation"

marodev %!s(int64=4) %!d(string=hai) anos
pai
achega
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)