mirror of
https://github.com/acepanel/panel.git
synced 2026-02-04 22:07:16 +08:00
fix: lint
This commit is contained in:
@@ -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 == "接收" {
|
||||
|
||||
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user