Makefile: add new recipes and linter features (#244)

* Makefile: add new recipes and linter features

* expand linter coverage and fix issues

* Update makefile

* address PR nitterinos
This commit is contained in:
Adrian Gallagher
2019-01-31 14:53:24 +11:00
committed by GitHub
parent e182248387
commit 291e404a4a
85 changed files with 306 additions and 393 deletions

View File

@@ -60,7 +60,7 @@ const (
func initialiseHTTPClient() {
// If the HTTPClient isn't set, start a new client with a default timeout of 15 seconds
if HTTPClient == nil {
HTTPClient = NewHTTPClientWithTimeout(time.Duration(time.Second * 15))
HTTPClient = NewHTTPClientWithTimeout(time.Second * 15)
}
}
@@ -138,7 +138,7 @@ func GetHMAC(hashType int, input, key []byte) []byte {
}
}
hmac := hmac.New(hash, []byte(key))
hmac := hmac.New(hash, key)
hmac.Write(input)
return hmac.Sum(nil)
}