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:
@@ -96,10 +96,8 @@ namespace BTCPayServer.Services.Rates
|
||||
|
||||
public HttpClientRequestMaker(IAPIRequestHandler api, HttpClient httpClient, CancellationToken cancellationToken)
|
||||
{
|
||||
if (api == null)
|
||||
throw new ArgumentNullException(nameof(api));
|
||||
if (httpClient == null)
|
||||
throw new ArgumentNullException(nameof(httpClient));
|
||||
ArgumentNullException.ThrowIfNull(api);
|
||||
ArgumentNullException.ThrowIfNull(httpClient);
|
||||
this.api = api;
|
||||
_httpClient = httpClient;
|
||||
_cancellationToken = cancellationToken;
|
||||
|
||||
Reference in New Issue
Block a user