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

@@ -145,8 +145,7 @@ namespace BTCPayServer.Services.Rates
public CurrencyData GetCurrencyData(string currency, bool useFallback)
{
if (currency == null)
throw new ArgumentNullException(nameof(currency));
ArgumentNullException.ThrowIfNull(currency);
CurrencyData result;
if (!_Currencies.TryGetValue(currency.ToUpperInvariant(), out result))
{