backend: Blob storage package documentation, close error check

This commit is contained in:
Kevin Lin 2024-02-03 16:38:30 -08:00
parent 9b06a6d1de
commit 15d8d08c22
No known key found for this signature in database
GPG key ID: A8F9E05B9AB4D240
2 changed files with 4 additions and 1 deletions

View file

@ -165,7 +165,9 @@ func (ctrl *V1Controller) handleItemAttachmentsHandler(w http.ResponseWriter, r
return validate.NewRequestError(err, http.StatusInternalServerError)
}
defer content.Close()
defer func() {
_ = content.Close()
}()
buf, err := io.ReadAll(content)
if err != nil {

View file

@ -1,3 +1,4 @@
// Package blobstore provides blob storage abstractions for reading and writing binary blobs.
package blobstore
import (