fix: repeat set http status

This commit is contained in:
gVisor bot 2022-08-01 22:12:36 +08:00
parent 21d44fa391
commit 1013612dc1

View file

@ -98,8 +98,8 @@ func updateRuleProvider(w http.ResponseWriter, r *http.Request) {
if err := provider.Update(); err != nil {
render.Status(r, http.StatusServiceUnavailable)
render.JSON(w, r, newError(err.Error()))
return
}
render.NoContent(w, r)
}