Skip to content

Commit

Permalink
fix superfluous response.WriteHeader
Browse files Browse the repository at this point in the history
Signed-off-by: zhangzujian <[email protected]>
  • Loading branch information
zhangzujian committed Feb 10, 2025
1 parent 4849329 commit 9abcb24
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/util/health_check.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ import (

func DefaultHealthCheckHandler(w http.ResponseWriter, _ *http.Request) {
if _, err := w.Write([]byte("ok")); err != nil {
klog.Error(err)
klog.Errorf("failed to write health check response: %v", err)
}
}

0 comments on commit 9abcb24

Please sign in to comment.