Skip to content

Commit 9b54f83

Browse files
committed
fix lint
1 parent e1847c8 commit 9b54f83

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

cmd/thanos/receive.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,9 @@ func runReceive(
367367
// Set the Content-Type header and write the response
368368
w.Header().Set("Content-Type", "application/json")
369369
w.WriteHeader(http.StatusOK)
370-
w.Write(jsonData)
370+
if _, err := w.Write(jsonData); err != nil {
371+
level.Error(logger).Log("msg", "failed to write matchers json", "err", err)
372+
}
371373
}
372374
}))
373375
g.Add(func() error {

0 commit comments

Comments
 (0)