From 731aa497c3582dde0738061bc3d9e159aa16a93a Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Fri, 14 Feb 2025 20:59:42 +1030 Subject: [PATCH] offers: don't call create_invoicereq twice. We ignored the second one, but still it's unnecessary. Signed-off-by: Rusty Russell --- plugins/offers_invreq_hook.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/offers_invreq_hook.c b/plugins/offers_invreq_hook.c index 7669ad1e7..49e3bd70a 100644 --- a/plugins/offers_invreq_hook.c +++ b/plugins/offers_invreq_hook.c @@ -353,7 +353,7 @@ static struct command_result *add_blindedpaths(struct command *cmd, struct invreq *ir) { if (!we_want_blinded_path(cmd->plugin)) - create_invoicereq(cmd, ir); + return create_invoicereq(cmd, ir); return find_best_peer(cmd, OPT_ROUTE_BLINDING, found_best_peer, ir);