Commit ee7df39

Eric Bower  ·  2025-12-15 23:35:34 -0500 EST
parent 25aaa15
chore: fix lint
1 files changed,  +3, -1
M pkg/apps/prose/api.go
+3, -1
 1@@ -930,7 +930,9 @@ func imgRequest(w http.ResponseWriter, r *http.Request) {
 2 		http.Error(w, err.Error(), http.StatusUnprocessableEntity)
 3 		return
 4 	}
 5-	defer contents.Close()
 6+	defer func() {
 7+		_ = contents.Close()
 8+	}()
 9 
10 	contentType := ""
11 	if info != nil {