From ddea2ee313c176ad1342b8b557d51bd4193187c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E5=90=AF=E8=88=AA?= <101104760+ZhangSetSail@users.noreply.github.com> Date: Thu, 11 Jan 2024 18:34:28 +0800 Subject: [PATCH] feat: some minor detail fixes during development --- api/controller/cluster.go | 7 ------- cmd/version.go | 2 +- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/api/controller/cluster.go b/api/controller/cluster.go index cd0b3a6175..a8dd90f706 100644 --- a/api/controller/cluster.go +++ b/api/controller/cluster.go @@ -473,13 +473,6 @@ func (c *ClusterController) GetLangVersion(w http.ResponseWriter, r *http.Reques httputil.ReturnBcodeError(r, w, fmt.Errorf("update lang version failure: %v", err)) return } - //if versions != nil && len(versions) == 0 { - // versions, err = db.GetManager().LongVersionDao().InitLanguageVersion(language) - // if err != nil { - // httputil.ReturnBcodeError(r, w, fmt.Errorf("failed to get language pack version")) - // return - // } - //} httputil.ReturnSuccess(r, w, versions) } diff --git a/cmd/version.go b/cmd/version.go index f8c2161e4e..bbeeb0b219 100644 --- a/cmd/version.go +++ b/cmd/version.go @@ -37,5 +37,5 @@ func ShowVersion(module string) { // GetVersion GetVersion func GetVersion() string { - return "tstt" + return version }