Fix empty GetLightningClient return value

This commit is contained in:
Dennis Reimann
2021-02-03 11:19:35 +01:00
parent 242f9c6197
commit 5246e7f035
2 changed files with 2 additions and 2 deletions

View File

@@ -120,7 +120,7 @@ namespace BTCPayServer.Controllers.GreenField
if (existing == null || (existing.GetLightningUrl().IsInternalNode(internalLightningNode) &&
!CanUseInternalLightning(doingAdminThings)))
{
return null;
return Task.FromResult<ILightningClient>(null);
}
return Task.FromResult(_lightningClientFactory.Create(existing.GetLightningUrl(), network));