Skip to content

Commit

Permalink
acme: add missing err assignment check
Browse files Browse the repository at this point in the history
Spotted it thanks to a proposal in
golang/go#19727.

Change-Id: I389a3fc0db3cf64fba41c3ecd70a236917ea8fa3
Reviewed-on: https://go-review.googlesource.com/41698
Run-TryBot: Sam Whited <[email protected]>
TryBot-Result: Gobot Gobot <[email protected]>
Reviewed-by: Sam Whited <[email protected]>
Reviewed-by: Brad Fitzpatrick <[email protected]>
  • Loading branch information
desdeel2d0m authored and Alex Vaghin committed Apr 25, 2017
1 parent 54fe9c8 commit dd40f9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion acme/acme.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand Down

0 comments on commit dd40f9b

Please sign in to comment.