multi: fix newly detected linter issues
This commit is contained in:
30 files changed
+106
-118
No files matched your search
@@ -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{
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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"`
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user