mirror of
https://github.com/hay-kot/homebox.git
synced 2024-12-18 04:56:30 +00:00
backend: Blob storage package documentation, close error check
This commit is contained in:
parent
9b06a6d1de
commit
15d8d08c22
2 changed files with 4 additions and 1 deletions
|
@ -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 {
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// Package blobstore provides blob storage abstractions for reading and writing binary blobs.
|
||||
package blobstore
|
||||
|
||||
import (
|
||||
|
|
Loading…
Reference in a new issue