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 {
|
||||
return nil, false, err
|
||||
}
|
||||
if c.cfg.channel.MarkCommitmentBroadcasted(); err != nil {
|
||||
if err := c.cfg.channel.MarkCommitmentBroadcasted(); err != nil {
|
||||
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
|
||||
// flush any pending events to disk. This ensure we get a complete
|
||||
// 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 "+
|
||||
"events: %v", err)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user