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:
8 files changed
+12
-41
No files matched your search
+1
-5
@@ -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