mirror of
https://github.com/lightninglabs/loop.git
synced 2026-08-13 12:33:03 +02:00
multi: fix linter issues
This commit is contained in:
parent
f0bf9302cc
commit
a1271fee40
18 changed files with 10 additions and 21 deletions
|
|
@ -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(
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -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")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue