Skip to content

Commit

Permalink
feat: some minor detail fixes during development
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhangSetSail committed Jan 11, 2024
1 parent c5f041d commit ddea2ee
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
7 changes: 0 additions & 7 deletions api/controller/cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand Down
2 changes: 1 addition & 1 deletion cmd/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,5 @@ func ShowVersion(module string) {

// GetVersion GetVersion
func GetVersion() string {
return "tstt"
return version
}

0 comments on commit ddea2ee

Please sign in to comment.