cmd/pool+tools: update Go version of linter, fix issues

This commit is contained in:
Oliver Gugger 2024-05-31 09:43:22 +02:00
parent d78921b6ff
commit 811deaa6e9
No known key found for this signature in database
GPG key ID: 8E4256593F177720
2 changed files with 1 additions and 3 deletions

View file

@ -499,7 +499,6 @@ func parseAccountKey(ctx *cli.Context, args cli.Args) ([]byte, error) {
acctKeyStr = ctx.String("acct_key")
case args.Present():
acctKeyStr = args.First()
args = args.Tail()
default:
return nil, fmt.Errorf("acct_key argument missing")
}
@ -1004,7 +1003,6 @@ func ordersCancel(ctx *cli.Context) error { // nolint: dupl
nonceHex = ctx.String("order_nonce")
case args.Present():
nonceHex = args.First()
args = args.Tail()
default:
return fmt.Errorf("order_nonce argument missing")
}

View file

@ -1,4 +1,4 @@
FROM golang:1.19.4
FROM golang:1.22.3-bookworm
RUN apt-get update && apt-get install -y git
ENV GOCACHE=/tmp/build/.cache