mirror of
https://github.com/prometheus/prometheus
synced 2026-04-30 14:50:25 +08:00
Fix pipeline golangci-lint error
Signed-off-by: darshanime <deathbullet@gmail.com>
This commit is contained in:
@@ -119,7 +119,7 @@ func newTestHTTPServerBuilder(expected *[]*Alert, errc chan<- error, u, p string
|
||||
|
||||
b, err := io.ReadAll(r.Body)
|
||||
if err != nil {
|
||||
err = fmt.Errorf("error reading body: %v", err)
|
||||
err = fmt.Errorf("error reading body: %w", err)
|
||||
w.WriteHeader(http.StatusInternalServerError)
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user