From 88222bd8d05893eb0d728d734fa9faec7444cdce Mon Sep 17 00:00:00 2001 From: qiulaidongfeng <2645477756@qq.com> Date: Tue, 2 Apr 2024 22:20:21 +0800 Subject: [PATCH] n Change-Id: Ib9b2a8b6b4c7ef711bc4710c18a74556cde0117c --- src/cmd/api/main_test.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/cmd/api/main_test.go b/src/cmd/api/main_test.go index d104f087cf1..f568e847288 100644 --- a/src/cmd/api/main_test.go +++ b/src/cmd/api/main_test.go @@ -17,7 +17,6 @@ import ( "go/parser" "go/token" "go/types" - "internal/singleflight" "internal/testenv" "io" "log" @@ -386,7 +385,6 @@ func (w *Walker) Features() (fs []string) { var parsedFileCache struct { lock sync.RWMutex m map[string]*ast.File - wg singleflight.Group } func init() { @@ -411,6 +409,7 @@ func (w *Walker) parseFile(dir, file string) (*ast.File, error) { parsedFileCache.m[filename] = f } parsedFileCache.lock.Unlock() + return f, nil }