Skip to content
This repository was archived by the owner on Jun 12, 2024. It is now read-only.

Commit 15d8d08

Browse files
committed
backend: Blob storage package documentation, close error check
1 parent 9b06a6d commit 15d8d08

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

backend/app/api/handlers/v1/v1_ctrl_items_attachments.go

+3-1
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,9 @@ func (ctrl *V1Controller) handleItemAttachmentsHandler(w http.ResponseWriter, r
165165
return validate.NewRequestError(err, http.StatusInternalServerError)
166166
}
167167

168-
defer content.Close()
168+
defer func() {
169+
_ = content.Close()
170+
}()
169171

170172
buf, err := io.ReadAll(content)
171173
if err != nil {

backend/internal/core/blobstore/store.go

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Package blobstore provides blob storage abstractions for reading and writing binary blobs.
12
package blobstore
23

34
import (

0 commit comments

Comments
 (0)