[golangci-lint]: Use Body.Close().

errwrp
Martin Dosch 1 year ago
parent de7312a313
commit e60334e38d
No known key found for this signature in database
GPG Key ID: 52A57CFCE13D657D

@ -225,5 +225,9 @@ func httpUpload(client *xmpp.Client, iqc chan xmpp.IQ,
if iqHTTPUploadSlotXMLGetURL == nil {
log.Fatal("http-upload: no url attribute")
}
err = resp.Body.Close()
if err != nil {
fmt.Println("error while closing http request body:", err)
}
return iqHTTPUploadSlotXMLGetURL.Value
}

Loading…
Cancel
Save