From 3cbc5e2ab014fd2ddc2c97496296eee7d884473d Mon Sep 17 00:00:00 2001 From: Tom Hudson Date: Sun, 7 Feb 2016 00:12:53 +0000 Subject: [PATCH] Adds golint suggestions --- main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.go b/main.go index ee04795..74d56f5 100644 --- a/main.go +++ b/main.go @@ -14,7 +14,7 @@ type Link struct { // HasParam returns if a Link has a particular parameter or not func (l Link) HasParam(key string) bool { - for p, _ := range l.Params { + for p := range l.Params { if p == key { return true } @@ -32,7 +32,7 @@ func (l Link) Param(key string) (string, error) { return "", fmt.Errorf("Could not find param '%s'", key) } -// Type Links is a slice of Link structs +// Links is a slice of Link structs type Links []Link // FilterByRel filters a group of Links by the provided Rel attribute