mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-06-30 10:35:32 +02: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:
@ -2259,10 +2259,7 @@ func (r *rpcServer) AbandonChannel(ctx context.Context,
|
||||
}
|
||||
remotePub := dbChan.IdentityPub
|
||||
if peer, err := r.server.FindPeer(remotePub); err == nil {
|
||||
if err := peer.WipeChannel(chanPoint); err != nil {
|
||||
return nil, fmt.Errorf("unable to wipe "+
|
||||
"channel state: %v", err)
|
||||
}
|
||||
peer.WipeChannel(chanPoint)
|
||||
}
|
||||
|
||||
default:
|
||||
|
Reference in New Issue
Block a user