diff --git a/src/Nito.Disposables/AsyncDisposable.cs b/src/Nito.Disposables/AsyncDisposable.cs index 3c71b92..f055710 100644 --- a/src/Nito.Disposables/AsyncDisposable.cs +++ b/src/Nito.Disposables/AsyncDisposable.cs @@ -28,7 +28,7 @@ public AsyncDisposable(Func? dispose) /// The delegate to execute when disposed. If this is null, then this instance does nothing when it is disposed. /// Flags that control how asynchronous disposal is handled. public AsyncDisposable(Func? dispose, AsyncDisposeFlags flags) - : base(dispose!) + : base(dispose) { _flags = flags; } diff --git a/src/Nito.Disposables/Disposable.cs b/src/Nito.Disposables/Disposable.cs index cb82748..b0288af 100644 --- a/src/Nito.Disposables/Disposable.cs +++ b/src/Nito.Disposables/Disposable.cs @@ -12,7 +12,7 @@ public sealed class Disposable : SingleDisposable /// /// The delegate to execute when disposed. If this is null, then this instance does nothing when it is disposed. public Disposable(Action? dispose) - : base(dispose!) + : base(dispose) { }