mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-06-28 09:45:25 +02:00
multi: inspect missed errors in scoped if statements
This commit is contained in:
parent
cfb5e249b9
commit
69d3c47d22
@ -436,7 +436,7 @@ func (c *channelCloser) ProcessCloseMsg(msg lnwire.Message) ([]lnwire.Message, b
|
|||||||
if err := c.cfg.broadcastTx(closeTx); err != nil {
|
if err := c.cfg.broadcastTx(closeTx); err != nil {
|
||||||
return nil, false, err
|
return nil, false, err
|
||||||
}
|
}
|
||||||
if c.cfg.channel.MarkCommitmentBroadcasted(); err != nil {
|
if err := c.cfg.channel.MarkCommitmentBroadcasted(); err != nil {
|
||||||
return nil, false, err
|
return nil, false, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -4707,7 +4707,7 @@ func (r *rpcServer) FeeReport(ctx context.Context,
|
|||||||
// Before we perform the queries below, we'll instruct the switch to
|
// Before we perform the queries below, we'll instruct the switch to
|
||||||
// flush any pending events to disk. This ensure we get a complete
|
// flush any pending events to disk. This ensure we get a complete
|
||||||
// snapshot at this particular time.
|
// snapshot at this particular time.
|
||||||
if r.server.htlcSwitch.FlushForwardingEvents(); err != nil {
|
if err := r.server.htlcSwitch.FlushForwardingEvents(); err != nil {
|
||||||
return nil, fmt.Errorf("unable to flush forwarding "+
|
return nil, fmt.Errorf("unable to flush forwarding "+
|
||||||
"events: %v", err)
|
"events: %v", err)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user