From c7af5bf2638a1164f2eb5467c39c6cffbd13a02e Mon Sep 17 00:00:00 2001 From: Alex Vaghin Date: Tue, 25 Apr 2017 20:31:00 +0200 Subject: [PATCH] acme: add missing err assignment check Spotted it thanks to a proposal in https://github.com/golang/go/issues/19727. Change-Id: I389a3fc0db3cf64fba41c3ecd70a236917ea8fa3 Reviewed-on: https://go-review.googlesource.com/41698 Run-TryBot: Sam Whited TryBot-Result: Gobot Gobot Reviewed-by: Sam Whited Reviewed-by: Brad Fitzpatrick --- acme/acme.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/acme/acme.go b/acme/acme.go index 275844d..a7b6ce4 100644 --- a/acme/acme.go +++ b/acme/acme.go @@ -152,7 +152,7 @@ func (c *Client) Discover(ctx context.Context) (Directory, error) { CAA []string `json:"caa-identities"` } } - if json.NewDecoder(res.Body).Decode(&v); err != nil { + if err := json.NewDecoder(res.Body).Decode(&v); err != nil { return Directory{}, err } c.dir = &Directory{