multi: inspect missed errors in scoped if statements

This commit is contained in:
chokoboko authored and Olaoluwa Osuntokun committed 2019-03-11 13:23:21 -07:00
1 parent cfb5e249b9
commit 69d3c47d22
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -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
}
+1 -1
View File
@@ -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)
}