multi: fix linter issues

This commit is contained in:
sputn1ck 2022-05-20 08:57:06 +02:00
parent f0bf9302cc
commit a1271fee40
No known key found for this signature in database
GPG key ID: 671103D881A5F0E4
18 changed files with 10 additions and 21 deletions

View file

@ -476,7 +476,6 @@ func setParams(ctx *cli.Context) error {
// so that it does not need to be manually updated.
case categoriesSet:
params.FeePpm = 0
}
// Update our parameters to our mutated values.
_, err = client.SetLiquidityParams(

View file

@ -161,7 +161,7 @@ func loopOut(ctx *cli.Context) error {
}
// Show a warning if a slow swap was requested.
warning := ""
var warning string
if fast {
warning = "Fast swap requested."
} else {

View file

@ -49,7 +49,6 @@ func listAuth(ctx *cli.Context) error {
tokens := make([]*printableToken, len(resp.Tokens))
for i, t := range resp.Tokens {
mac := &macaroon.Macaroon{}
err := mac.UnmarshalBinary(t.BaseMacaroon)
if err != nil {

View file

@ -60,7 +60,7 @@ func swapInfo(ctx *cli.Context) error {
id = ctx.String("id")
case ctx.NArg() > 0:
id = args[0]
args = args.Tail()
args = args.Tail() // nolint:wastedassign
default:
// Show command help if no arguments and flags were provided.
return cli.ShowCommandHelp(ctx, "swapinfo")