Skip to content

Commit eb21a48

Browse files
committed
f - more expect
1 parent a60f17b commit eb21a48

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

lightning/src/ln/channel.rs

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9280,9 +9280,11 @@ where
92809280

92819281
let funding_promoted =
92829282
self.maybe_promote_splice_funding(confirmed_funding_index, logger);
9283-
let funding_txo = funding_promoted
9284-
.then(|| self.funding.get_funding_txo())
9285-
.flatten();
9283+
let funding_txo = funding_promoted.then(|| {
9284+
self.funding
9285+
.get_funding_txo()
9286+
.expect("Splice FundingScope should always have a funding_txo")
9287+
});
92869288
let announcement_sigs = funding_promoted
92879289
.then(|| self.get_announcement_sigs(node_signer, chain_hash, user_config, height, logger))
92889290
.flatten();
@@ -9447,9 +9449,11 @@ where
94479449

94489450
let funding_promoted =
94499451
self.maybe_promote_splice_funding(confirmed_funding_index, logger);
9450-
let funding_txo = funding_promoted
9451-
.then(|| self.funding.get_funding_txo())
9452-
.flatten();
9452+
let funding_txo = funding_promoted.then(|| {
9453+
self.funding
9454+
.get_funding_txo()
9455+
.expect("Splice FundingScope should always have a funding_txo")
9456+
});
94539457
let announcement_sigs = funding_promoted
94549458
.then(|| chain_node_signer
94559459
.and_then(|(chain_hash, node_signer, user_config)|

0 commit comments

Comments
 (0)