2
0
mirror of https://github.com/acepanel/panel.git synced 2026-02-04 22:07:16 +08:00

fix: lint

This commit is contained in:
耗子
2023-07-11 19:55:05 +08:00
parent 047a743aed
commit 8ef737253c
2 changed files with 2 additions and 0 deletions

View File

@@ -226,6 +226,7 @@ func (r *Mysql80Controller) Load(ctx http.Context) {
re := regexp.MustCompile(expression.regex)
matches := re.FindStringSubmatch(raw)
if len(matches) > 1 {
data[i] = make(map[string]string)
data[i] = map[string]string{"name": expression.name, "value": matches[1]}
if expression.name == "发送" || expression.name == "接收" {

View File

@@ -88,6 +88,7 @@ func (s *SystemHelperTestSuite) TestChown() {
s.Nil(err)
currentUser, err := user.Current()
s.Nil(err)
groups, err := currentUser.GroupIds()
s.Nil(err)