multi: fix newly detected linter issues

This commit is contained in:
Oliver Gugger committed 2022-02-10 11:02:02 +01:00
1 parent 369627901f
commit ffee7d1bcf
30 files changed
+106 -118

No files matched your search

-2
View File
@@ -389,7 +389,6 @@ func sendPayment(ctx *cli.Context) error {
if err != nil {
return err
}
args = args.Tail()
req.FinalCltvDelta = int32(delta)
}
@@ -1288,7 +1287,6 @@ func forwardingHistory(ctx *cli.Context) error {
return fmt.Errorf("unable to decode max_events: %v", err)
}
maxEvents = uint32(m)
args = args.Tail()
}
req := &lnrpc.ForwardingHistoryRequest{
+1 -1
View File
@@ -806,7 +806,7 @@ func askRecoveryWindow() (int32, error) {
return defaultRecoveryWindow, nil
}
lookAhead, err := strconv.Atoi(answer)
lookAhead, err := strconv.ParseInt(answer, 10, 32)
if err != nil {
fmt.Printf("Unable to parse recovery window: %v\n", err)
continue
+1 -1
View File
@@ -29,7 +29,7 @@ type profileEntry struct {
LndDir string `json:"lnddir"`
Chain string `json:"chain"`
Network string `json:"network"`
NoMacaroons bool `json:"no-macaroons,omitempty"`
NoMacaroons bool `json:"no-macaroons,omitempty"` // nolint:tagliatelle
TLSCert string `json:"tlscert"`
Macaroons *macaroonJar `json:"macaroons"`
}