multi: inspect missed errors in scoped if statements

This commit is contained in:
chokoboko 2019-03-11 22:23:21 +02:00 committed by Olaoluwa Osuntokun
parent cfb5e249b9
commit 69d3c47d22
2 changed files with 2 additions and 2 deletions

@ -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)
}