mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-11-10 22:27:22 +01:00
multi: remove returned error from WipeChannel
The linter complains about not checking the return value from WipeChannel in certain places. Instead of checking we simply remove the returned error because the in-memory modifications cannot fail.
This commit is contained in:
@@ -1084,11 +1084,7 @@ out:
|
||||
// TODO(roasbeef): remove all together
|
||||
go func() {
|
||||
chanPoint := l.channel.ChannelPoint()
|
||||
err := l.cfg.Peer.WipeChannel(chanPoint)
|
||||
if err != nil {
|
||||
l.log.Errorf("unable to wipe channel "+
|
||||
"%v", err)
|
||||
}
|
||||
l.cfg.Peer.WipeChannel(chanPoint)
|
||||
}()
|
||||
|
||||
break out
|
||||
|
||||
Reference in New Issue
Block a user