From e359a0b36a41a40944fee091b2878346bf8dd1ca Mon Sep 17 00:00:00 2001 From: Kegan Dougal Date: Thu, 4 May 2023 17:48:03 +0100 Subject: [PATCH] Linting --- cmd/furl/main.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cmd/furl/main.go b/cmd/furl/main.go index a918a4cfe..014935686 100644 --- a/cmd/furl/main.go +++ b/cmd/furl/main.go @@ -142,7 +142,8 @@ func main() { }, }, } - serverKeyBytes, err := json.Marshal(serverKey) + var serverKeyBytes []byte + serverKeyBytes, err = json.Marshal(serverKey) if err != nil { panic(err) } @@ -198,7 +199,7 @@ func main() { ) if a.Data != nil { var jsonData interface{} - if err := json.Unmarshal(a.Data, &jsonData); err != nil { + if err = json.Unmarshal(a.Data, &jsonData); err != nil { fmt.Printf("Supplied data is not valid json: %s\n", err) os.Exit(1) }