We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 6f2b770 + 7ea30f6 commit c36eba5Copy full SHA for c36eba5
pkg/dbhelper/mon.go
@@ -78,7 +78,7 @@ func GetRedisVM() ([]Redis, error) {
78
}
79
rows.Close()
80
81
- sql = fmt.Sprintf("select cluster_name,owner from redis_vm")
+ sql = "select cluster_name,owner from redis_vm"
82
vm_owner := map[string]string{}
83
rows, err := mon.Query(sql)
84
if err != nil {
pkg/middlewares/luc/luc.go
@@ -21,7 +21,7 @@ func Luc(g *gin.Context) {
21
22
token := g.GetHeader("x-user-token")
23
if token == "" || token == "null" {
24
- errlog := fmt.Sprintf("luc get token failed")
+ errlog := "luc get token failed"
25
g.JSON(http.StatusBadRequest, Result(errlog, false))
26
g.Abort()
27
return
0 commit comments