FIX close body
Signed-off-by: Nicolas Lamirault <nicolas.lamirault@gmail.com>
This commit is contained in:
parent
f0c39d9f6b
commit
1026d69158
@ -66,7 +66,7 @@ func (fetcher *ArchlinuxFetcher) FetchUpdate() (resp updater.FetcherResponse, er
|
|||||||
log.Errorf("could not download Archlinux CVE wiki content: %s", err)
|
log.Errorf("could not download Archlinux CVE wiki content: %s", err)
|
||||||
return resp, cerrors.ErrCouldNotDownload
|
return resp, cerrors.ErrCouldNotDownload
|
||||||
}
|
}
|
||||||
|
defer r.Body.Close()
|
||||||
flag, err := database.GetFlagValue(archlinuxUpdaterFlag)
|
flag, err := database.GetFlagValue(archlinuxUpdaterFlag)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return resp, err
|
return resp, err
|
||||||
|
Loading…
Reference in New Issue
Block a user