From dbd1bf11f126739676cfb54704a3f07b67ff3f80 Mon Sep 17 00:00:00 2001 From: Mariano Cano Date: Mon, 14 Jan 2019 17:35:38 -0800 Subject: [PATCH] Rename variable. --- ca/client.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ca/client.go b/ca/client.go index 83ee73db..e138698f 100644 --- a/ca/client.go +++ b/ca/client.go @@ -410,11 +410,11 @@ func (c *Client) Roots() (*api.RootsResponse, error) { if resp.StatusCode >= 400 { return nil, readError(resp.Body) } - var federation api.RootsResponse - if err := readJSON(resp.Body, &federation); err != nil { + var roots api.RootsResponse + if err := readJSON(resp.Body, &roots); err != nil { return nil, errors.Wrapf(err, "error reading %s", u) } - return &federation, nil + return &roots, nil } // Federation performs the get federation request to the CA and returns the