Skip to content

Commit 919b72c

Browse files
authored
Merge pull request #120 from keyxmakerx/claude/fix-backdrop-customizer-uAn3g
fix: check error return from src.Close to satisfy errcheck lint
2 parents 7156b6b + d97eac6 commit 919b72c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

internal/widgets/notes/handler.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -497,7 +497,7 @@ func (h *Handler) UploadAttachment(c echo.Context) error {
497497
if err != nil {
498498
return apperror.NewBadRequest("could not read uploaded file")
499499
}
500-
defer src.Close()
500+
defer func() { _ = src.Close() }()
501501

502502
fileBytes, err := io.ReadAll(io.LimitReader(src, 100*1024*1024)) // 100MB limit
503503
if err != nil {

0 commit comments

Comments
 (0)