use EmptyResult instead of custom NoResponse

This commit is contained in:
nicolas.dorier
2017-12-25 21:52:27 +09:00
parent 513835ed0f
commit ab188ad54f
2 changed files with 20 additions and 10 deletions

View File

@@ -217,17 +217,9 @@ namespace BTCPayServer.Controllers
leases.Dispose();
await CloseSocket(webSocket);
}
return new NoResponse();
return new EmptyResult();
}
class NoResponse : IActionResult
{
public Task ExecuteResultAsync(ActionContext context)
{
return Task.CompletedTask;
}
}
ArraySegment<Byte> DummyBuffer = new ArraySegment<Byte>(new Byte[1]);
private async Task NotifySocket(WebSocket webSocket, string invoiceId, string expectedId)
{