dumpchannels: fix linter error

pull/79/head
Oliver Gugger 8 months ago
parent f191d1bb91
commit fe356a4648
No known key found for this signature in database
GPG Key ID: 8E4256593F177720

@ -1,6 +1,7 @@
package main
import (
"errors"
"fmt"
"github.com/davecgh/go-spew/spew"
@ -113,13 +114,14 @@ func dumpClosedChannelInfo(chanDb *channeldb.ChannelStateDB) error {
histChan, err := chanDb.FetchHistoricalChannel(
&closedChan.ChanPoint,
)
switch err {
switch {
// The channel was closed in a pre-historic version of lnd.
// Ignore the error.
case channeldb.ErrNoHistoricalBucket:
case channeldb.ErrChannelNotFound:
case errors.Is(err, channeldb.ErrNoHistoricalBucket):
case errors.Is(err, channeldb.ErrChannelNotFound):
case nil:
case err == nil:
historicalChannels[idx] = histChan
// Non-nil error not due to older versions of lnd.

Binary file not shown.
Loading…
Cancel
Save