mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-09-18 19:41:21 +02:00
multi: fix complaints from IDE and linter
Fixed unused param and nilness cond.
This commit is contained in:
@@ -1089,7 +1089,7 @@ func (p *Brontide) loadActiveChannels(chans []*channeldb.OpenChannel) (
|
||||
return
|
||||
}
|
||||
|
||||
shutdownMsg = fn.Some[lnwire.Shutdown](*shutdown)
|
||||
shutdownMsg = fn.Some(*shutdown)
|
||||
})
|
||||
if shutdownInfoErr != nil {
|
||||
return nil, shutdownInfoErr
|
||||
@@ -2938,7 +2938,7 @@ func (p *Brontide) restartCoopClose(lnChan *lnwallet.LightningChannel) (
|
||||
})
|
||||
|
||||
// An error other than ErrNoShutdownInfo was returned
|
||||
case err != nil && !errors.Is(err, channeldb.ErrNoShutdownInfo):
|
||||
case !errors.Is(err, channeldb.ErrNoShutdownInfo):
|
||||
return nil, err
|
||||
|
||||
case errors.Is(err, channeldb.ErrNoShutdownInfo):
|
||||
|
Reference in New Issue
Block a user