linting errors: afew more

This commit is contained in:
Zach Ramsay
2017-09-21 11:42:44 -04:00
committed by Ethan Buchman
parent 8f0237610e
commit 68e7983c70
12 changed files with 50 additions and 24 deletions

View File

@ -93,7 +93,7 @@ func (c *JSONRPCClient) Call(method string, params map[string]interface{}, resul
if err != nil {
return nil, err
}
defer httpResponse.Body.Close()
defer httpResponse.Body.Close() // nolint (errcheck)
responseBytes, err := ioutil.ReadAll(httpResponse.Body)
if err != nil {
@ -129,7 +129,7 @@ func (c *URIClient) Call(method string, params map[string]interface{}, result in
if err != nil {
return nil, err
}
defer resp.Body.Close()
defer resp.Body.Close() // nolint (errcheck)
responseBytes, err := ioutil.ReadAll(resp.Body)
if err != nil {