From 416bf202ae4a7bc54cdf54ffa62bb1e5e7bb07cb Mon Sep 17 00:00:00 2001 From: Dimitri Sokolyuk Date: Sun, 20 Dec 2015 23:35:03 +0100 Subject: No need for extra type --- client.go | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/client.go b/client.go index 12812dd..8a88728 100644 --- a/client.go +++ b/client.go @@ -12,13 +12,10 @@ import ( "time" ) -// Link to the next stage -type Link map[string]string - // Client ... type Client struct { Dir Directory - Link Link + Link map[string]string Location string nonce chan string RetryAfter time.Duration @@ -119,7 +116,7 @@ func (c *Client) parseHeader(r *http.Response) { c.Location = r.Header.Get("Location") - c.Link = make(Link) + c.Link = make(map[string]string) for _, l := range r.Header["Link"] { re := linksRe.FindStringSubmatch(l) if len(re) == 3 { -- cgit v1.2.3