From 114b30eb5531b924befb12fbda28cea4663d3608 Mon Sep 17 00:00:00 2001 From: qiulaidongfeng <2645477756@qq.com> Date: Mon, 15 Apr 2024 21:16:41 +0800 Subject: [PATCH] n Change-Id: I1c826be0e3630cba53ce5515e732460f938f25d8 --- src/cmd/go/internal/version/version.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/cmd/go/internal/version/version.go b/src/cmd/go/internal/version/version.go index 2abd1555fb..c5b69c0a7e 100644 --- a/src/cmd/go/internal/version/version.go +++ b/src/cmd/go/internal/version/version.go @@ -135,7 +135,8 @@ func isGoBinaryCandidate(file string, info fs.FileInfo) bool { // If mustPrint is true, scanFile will report any error reading file. // Otherwise (mustPrint is false, because scanFile is being called // by scanDir) scanFile prints nothing for non-Go binaries. -func scanFile(file string, info fs.FileInfo, mustPrint bool) (ok bool) { +// scanFile reports whether the file is a Go binary. +func scanFile(file string, info fs.FileInfo, mustPrint bool) bool { if info.Mode()&fs.ModeSymlink != 0 { // Accept file symlinks only. i, err := os.Stat(file)