Commit ee7df39
Eric Bower
·
2025-12-15 23:35:34 -0500 EST
parent 25aaa15
chore: fix lint
1 files changed,
+3,
-1
+3,
-1
| ... | ... | @@ -930,7 +930,9 @@ func imgRequest(w http.ResponseWriter, r *http.Request) { | |
| 930 | 930 | http.Error(w, err.Error(), http.StatusUnprocessableEntity) | |
| 931 | 931 | return | |
| 932 | 932 | } | |
| 933 | - | defer contents.Close() | |
| 933 | + | defer func() { | |
| 934 | + | _ = contents.Close() | |
| 935 | + | }() | |
| 934 | 936 | ||
| 935 | 937 | contentType := "" | |
| 936 | 938 | if info != nil { |