From 567f3ab6930a20ea0200bc07b355f03af795d494 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=80=97=E5=AD=90?= Date: Sat, 2 Nov 2024 18:18:29 +0800 Subject: [PATCH] fix: lint --- internal/apps/memcached/service.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/apps/memcached/service.go b/internal/apps/memcached/service.go index 6e6d7290..02929425 100644 --- a/internal/apps/memcached/service.go +++ b/internal/apps/memcached/service.go @@ -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],