2
0
mirror of https://github.com/acepanel/panel.git synced 2026-02-04 06:47:20 +08:00

fix: lint

This commit is contained in:
耗子
2024-11-02 18:18:29 +08:00
parent aa162e12db
commit 567f3ab693

View File

@@ -47,7 +47,7 @@ func (s *Service) Load(w http.ResponseWriter, r *http.Request) {
scanner := bufio.NewScanner(conn)
for scanner.Scan() {
line := scanner.Text()
if matches := re.FindStringSubmatch(line); matches != nil && len(matches) == 3 {
if matches := re.FindStringSubmatch(line); len(matches) == 3 {
data = append(data, types.NV{
Name: matches[1],
Value: matches[2],