Skip to content

Commit

Permalink
fix:review
Browse files Browse the repository at this point in the history
Signed-off-by: realanna <[email protected]>
  • Loading branch information
RealAnna committed Mar 9, 2023
1 parent c6dbc3a commit c16860e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion metrics-operator/pkg/metrics/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ func (m *serverManager) returnMetric(w http.ResponseWriter, r *http.Request) {
err = json.NewEncoder(w).Encode(data)
if err != nil {
fmt.Println("failed to encode data")
w.WriteHeader(422)
w.WriteHeader(http.StatusUnprocessableEntity)
os.Exit(1)
}

Expand Down

0 comments on commit c16860e

Please sign in to comment.