Skip to content

Commit 1b93ee2

Browse files
committed
code smells
1 parent 6521f91 commit 1b93ee2

File tree

2 files changed

+1
-17
lines changed

2 files changed

+1
-17
lines changed

RoyalCode.EnterprisePatterns/RoyalCode.DomainEvents/DomainEventCollection.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,7 @@ public void Observe(Action<IDomainEvent> observerAction)
9393
/// <inheritdoc />
9494
public void RemoveObserver(Action<IDomainEvent> observerAction)
9595
{
96-
if (observerAction is null)
97-
throw new ArgumentNullException(nameof(observerAction));
96+
ArgumentNullException.ThrowIfNull(observerAction);
9897

9998
observers?.Remove(observerAction);
10099
}

RoyalCode.EnterprisePatterns/RoyalCode.DomainEvents/_pollyfill.cs

Lines changed: 0 additions & 15 deletions
This file was deleted.

0 commit comments

Comments
 (0)