mirror of
https://github.com/apotdevin/thunderhub.git
synced 2025-02-22 22:25:21 +01:00
refactor: ♻️ probe route resolver
This commit is contained in:
parent
b42047e41d
commit
b33242e7cd
1 changed files with 1 additions and 8 deletions
|
@ -54,14 +54,7 @@ export const routeResolvers = {
|
|||
probeForRoute({ lnd, destination, tokens })
|
||||
);
|
||||
|
||||
if (!info) {
|
||||
logger.debug(
|
||||
`Error probing route to destination ${destination} for ${tokens} tokens`
|
||||
);
|
||||
return null;
|
||||
}
|
||||
|
||||
if (error) {
|
||||
if (!info || error) {
|
||||
logger.debug(
|
||||
`Error probing route to destination ${destination} for ${tokens} tokens`
|
||||
);
|
||||
|
|
Loading…
Add table
Reference in a new issue