Use ArgumentNullException.ThrowIfNull everywhere (#3239)

This commit is contained in:
Nicolas Dorier
2021-12-28 17:39:54 +09:00
committed by GitHub
parent 9b7ca76b99
commit ed5b159fb6
50 changed files with 122 additions and 244 deletions

View File

@@ -81,8 +81,7 @@ namespace BTCPayServer
public void Publish(object evt, Type evtType)
{
if (evt == null)
throw new ArgumentNullException(nameof(evt));
ArgumentNullException.ThrowIfNull(evt);
List<Action<object>> actionList = new List<Action<object>>();
lock (_Subscriptions)
{