From 1e7af0bbc7103b401bcb22ef32617378ce584bb3 Mon Sep 17 00:00:00 2001 From: Skyxim Date: Mon, 1 Aug 2022 22:12:36 +0800 Subject: [PATCH] fix: repeat set http status --- hub/route/provider.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hub/route/provider.go b/hub/route/provider.go index e8c985a8..1ba0d32c 100644 --- a/hub/route/provider.go +++ b/hub/route/provider.go @@ -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) }