Skip to content

Commit f63066e

Browse files
committed
Inline error variable
1 parent 21110c8 commit f63066e

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

lightning/src/ln/channelmanager.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6740,16 +6740,13 @@ where
67406740
}
67416741
},
67426742
None => {
6743-
let error = format!(
6744-
"Channel not found for the passed counterparty node_id {next_node_id}"
6745-
);
67466743
let logger = WithContext::from(
67476744
&self.logger,
67486745
Some(next_node_id),
67496746
Some(*next_hop_channel_id),
67506747
None,
67516748
);
6752-
log_error!(logger, "{error} when attempting to forward intercepted HTLC");
6749+
log_error!(logger, "Channel not found for the passed counterparty node_id {next_node_id} when attempting to forward intercepted HTLC");
67536750
return Err(APIError::ChannelUnavailable {
67546751
err: format!(
67556752
"Channel with id {next_hop_channel_id} not found for the passed counterparty node_id {next_node_id}"

0 commit comments

Comments
 (0)