Skip to content

Commit e271f35

Browse files
committed
offers: don't call create_invoicereq twice.
We ignored the second one, but still it's unnecessary. Signed-off-by: Rusty Russell <[email protected]>
1 parent c520fad commit e271f35

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugins/offers_invreq_hook.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,7 @@ static struct command_result *add_blindedpaths(struct command *cmd,
353353
struct invreq *ir)
354354
{
355355
if (!we_want_blinded_path(cmd->plugin))
356-
create_invoicereq(cmd, ir);
356+
return create_invoicereq(cmd, ir);
357357

358358
return find_best_peer(cmd, OPT_ROUTE_BLINDING,
359359
found_best_peer, ir);

0 commit comments

Comments
 (0)