Fixes after running errcheck
This commit is contained in:
parent
125fc8f1f0
commit
17ffb0855f
6 changed files with 22 additions and 14 deletions
|
@ -530,7 +530,7 @@ func (o *FsObjectStorage) Open() (in io.ReadCloser, err error) {
|
|||
return nil, err
|
||||
}
|
||||
if res.StatusCode != 200 {
|
||||
res.Body.Close()
|
||||
_ = res.Body.Close() // ignore error
|
||||
return nil, fmt.Errorf("Bad response: %d: %s", res.StatusCode, res.Status)
|
||||
}
|
||||
return res.Body, nil
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue