lncli: remove dead code

Variable chanPoints was accumulated but never used. Found with staticcheck tool.

The code is dead since 8f5d78c875
This commit is contained in:
Boris Nagaev committed 2025-11-19 21:51:40 -03:00
1 parent 194a9f7597
commit 031c792b56
1 file changed
-13
-13
View File
@@ -2972,19 +2972,6 @@ func exportChanBackup(ctx *cli.Context) error {
// TODO(roasbeef): support for export | restore ?
var chanPoints []string
for _, chanPoint := range chanBackup.MultiChanBackup.ChanPoints {
txid, err := chainhash.NewHash(chanPoint.GetFundingTxidBytes())
if err != nil {
return err
}
chanPoints = append(chanPoints, wire.OutPoint{
Hash: *txid,
Index: chanPoint.OutputIndex,
}.String())
}
printRespJSON(chanBackup)
return nil