Skip to content

Commit

Permalink
Remove unnecessary null-forgiving operator.
Browse files Browse the repository at this point in the history
  • Loading branch information
StephenCleary committed Feb 23, 2023
1 parent e744360 commit 300ec01
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Nito.Disposables/AsyncDisposable.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public AsyncDisposable(Func<ValueTask>? dispose)
/// <param name="dispose">The delegate to execute when disposed. If this is <c>null</c>, then this instance does nothing when it is disposed.</param>
/// <param name="flags">Flags that control how asynchronous disposal is handled.</param>
public AsyncDisposable(Func<ValueTask>? dispose, AsyncDisposeFlags flags)
: base(dispose!)
: base(dispose)
{
_flags = flags;
}
Expand Down
2 changes: 1 addition & 1 deletion src/Nito.Disposables/Disposable.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public sealed class Disposable : SingleDisposable<Action?>
/// </summary>
/// <param name="dispose">The delegate to execute when disposed. If this is <c>null</c>, then this instance does nothing when it is disposed.</param>
public Disposable(Action? dispose)
: base(dispose!)
: base(dispose)
{
}

Expand Down

0 comments on commit 300ec01

Please sign in to comment.