Revert "Remove unused variables" (#5667)

This reverts commit f070b22355.
This commit is contained in:
Nicolas Dorier
2024-01-18 00:05:50 +09:00
committed by GitHub
parent 3ae1f13323
commit 1d6d146fb2
39 changed files with 127 additions and 79 deletions

View File

@@ -240,7 +240,7 @@ namespace BTCPayServer.Controllers.Greenfield
}
if (!string.IsNullOrEmpty(request.DefaultPaymentMethod) &&
!PaymentMethodId.TryParse(request.DefaultPaymentMethod, out _))
!PaymentMethodId.TryParse(request.DefaultPaymentMethod, out var defaultPaymentMethodId))
{
ModelState.AddModelError(nameof(request.Name), "DefaultPaymentMethod is invalid");
}