mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-18 14:34:23 +01:00
Use ArgumentNullException.ThrowIfNull everywhere (#3239)
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user