Make full quality gates pass across repository

This commit is contained in:
CJACK.
2026-04-06 13:41:58 +08:00
parent 57114a36f5
commit 37fb758191
42 changed files with 92 additions and 63 deletions

View File

@@ -43,7 +43,7 @@ func (h *Handler) getVersion(w http.ResponseWriter, _ *http.Request) {
writeJSON(w, http.StatusOK, resp)
return
}
defer r.Body.Close()
defer func() { _ = r.Body.Close() }()
if r.StatusCode < 200 || r.StatusCode >= 300 {
resp["check_error"] = "github api status: " + r.Status
writeJSON(w, http.StatusOK, resp)