From 81db1c84aa4916a02887ab436beb53f0b090bc1e Mon Sep 17 00:00:00 2001 From: Dimitri Sokolyuk Date: Mon, 21 Dec 2015 00:39:50 +0100 Subject: bikeshading --- client.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'client.go') diff --git a/client.go b/client.go index 7c32b70..7a023b5 100644 --- a/client.go +++ b/client.go @@ -114,8 +114,8 @@ func (c *Client) post(s Signer, v interface{}) error { var linksRe = regexp.MustCompile(`^<(.*)>;rel="(.*)"`) func (c *Client) parseHeader(r *http.Response) { - if no := r.Header.Get("Replay-Nonce"); no != "" { - c.nonce <- no + if rn := r.Header.Get("Replay-Nonce"); rn != "" { + c.nonce <- rn } if lo := r.Header.Get("Location"); lo != "" { -- cgit v1.2.3