fix: silence errcheck on test-response writes

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
Tomas DvorakandDevin committed 2026-09-24 23:08:15 +02:00
1 parent 3b90dae767
commit 9707f307a1
1 file changed
+2 -2
+2 -2
View File
@@ -57,14 +57,14 @@ func (f *fakeS3) ServeHTTP(w http.ResponseWriter, r *http.Request) {
} }
out.WriteString(`</ListBucketResult>`) out.WriteString(`</ListBucketResult>`)
w.Header().Set("Content-Type", "application/xml") w.Header().Set("Content-Type", "application/xml")
w.Write([]byte(out.String())) _, _ = w.Write([]byte(out.String()))
case r.Method == http.MethodGet: case r.Method == http.MethodGet:
body, ok := f.objects[key] body, ok := f.objects[key]
if !ok { if !ok {
http.Error(w, "no such key", http.StatusNotFound) http.Error(w, "no such key", http.StatusNotFound)
return return
} }
w.Write(body) _, _ = w.Write(body)
case r.Method == http.MethodDelete: case r.Method == http.MethodDelete:
delete(f.objects, key) delete(f.objects, key)
w.WriteHeader(http.StatusNoContent) w.WriteHeader(http.StatusNoContent)