Remove warnings

This commit is contained in:
nicolas.dorier 2020-06-26 20:52:39 +09:00
parent a0065bc2ba
commit f2b986a357
No known key found for this signature in database
GPG Key ID: 6618763EF09186FE
3 changed files with 4 additions and 4 deletions

View File

@ -1285,7 +1285,7 @@ namespace BTCPayServer.Tests
var resp = await ctrl.Generate(newVersion);
var vm = Assert.IsType<Models.NotificationViewModels.IndexViewModel>(
Assert.IsType<ViewResult>(ctrl.Index().Result).Model);
Assert.IsType<ViewResult>(ctrl.Index()).Model);
Assert.True(vm.Skip == 0);
Assert.True(vm.Count == 50);

View File

@ -59,7 +59,7 @@ namespace BTCPayServer.Controllers
}
[HttpGet]
public async Task<IActionResult> GetNotificationDropdownUI()
public IActionResult GetNotificationDropdownUI()
{
return ViewComponent("NotificationsDropdown");
}
@ -105,7 +105,7 @@ namespace BTCPayServer.Controllers
}
[HttpGet]
public async Task<IActionResult> 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");

View File

@ -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);
}