diff --git a/BTCPayServer.Tests/UnitTest1.cs b/BTCPayServer.Tests/UnitTest1.cs index 1156c1d91..c0e377155 100644 --- a/BTCPayServer.Tests/UnitTest1.cs +++ b/BTCPayServer.Tests/UnitTest1.cs @@ -1285,7 +1285,7 @@ namespace BTCPayServer.Tests var resp = await ctrl.Generate(newVersion); var vm = Assert.IsType( - Assert.IsType(ctrl.Index().Result).Model); + Assert.IsType(ctrl.Index()).Model); Assert.True(vm.Skip == 0); Assert.True(vm.Count == 50); diff --git a/BTCPayServer/Controllers/NotificationsController.cs b/BTCPayServer/Controllers/NotificationsController.cs index 280fe19e1..00d93d260 100644 --- a/BTCPayServer/Controllers/NotificationsController.cs +++ b/BTCPayServer/Controllers/NotificationsController.cs @@ -59,7 +59,7 @@ namespace BTCPayServer.Controllers } [HttpGet] - public async Task GetNotificationDropdownUI() + public IActionResult GetNotificationDropdownUI() { return ViewComponent("NotificationsDropdown"); } @@ -105,7 +105,7 @@ namespace BTCPayServer.Controllers } [HttpGet] - public async Task Index(int skip = 0, int count = 50, int timezoneOffset = 0) + public IActionResult Index(int skip = 0, int count = 50, int timezoneOffset = 0) { if (!ValidUserClaim(out var userId)) return RedirectToAction("Index", "Home"); diff --git a/BTCPayServer/DerivationSchemeParser.cs b/BTCPayServer/DerivationSchemeParser.cs index 61d8fad34..e270b33dc 100644 --- a/BTCPayServer/DerivationSchemeParser.cs +++ b/BTCPayServer/DerivationSchemeParser.cs @@ -161,7 +161,7 @@ namespace BTCPayServer { return new BitcoinExtPubKey(network.GetBase58CheckEncoder().EncodeData(data), network.NetworkSet.Mainnet).ToNetwork(network); } - catch (Exception e) + catch (Exception) { return new BitcoinExtPubKey(network.GetBase58CheckEncoder().EncodeData(data), Network.Main).ToNetwork(network); }