Skip to content

Commit e6b4ab3

Browse files
committed
splice: (todo del) channeld whitespace fix
1 parent e2547e6 commit e6b4ab3

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

channeld/channeld.c

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -283,18 +283,16 @@ static void end_stfu_mode(struct peer *peer)
283283

284284
static void maybe_send_stfu(struct peer *peer)
285285
{
286-
if (!peer->stfu) {
286+
if (!peer->stfu)
287287
return;
288-
}
289288

290289
if (!peer->stfu_sent[LOCAL] && !pending_updates(peer->channel, LOCAL, false)) {
291290
status_debug("Sending peer that we want to STFU.");
292291
u8 *msg = towire_stfu(NULL, &peer->channel_id,
293292
peer->stfu_initiator == LOCAL);
294293
peer_write(peer->pps, take(msg));
295294
peer->stfu_sent[LOCAL] = true;
296-
}
297-
else if(pending_updates(peer->channel, LOCAL, false)) {
295+
} else if(pending_updates(peer->channel, LOCAL, false)) {
298296
status_info("Pending updates prevent us from STFU mode at this time.");
299297
}
300298

@@ -303,9 +301,7 @@ static void maybe_send_stfu(struct peer *peer)
303301
towire_channeld_dev_quiesce_reply(tmpctx));
304302

305303
peer->stfu_wait_single_msg = true;
306-
307304
if (peer->on_stfu_success) {
308-
309305
peer->on_stfu_success(peer);
310306
peer->on_stfu_success = NULL;
311307
}

0 commit comments

Comments
 (0)