From f4cec7917cc53c8c7ef2ea456b4bf0474c41189a Mon Sep 17 00:00:00 2001 From: Lin Lin Date: Thu, 18 Dec 2025 13:05:26 +0800 Subject: cmd: fix unused errors reported by ineffassign Updates golang/go#35136 Change-Id: I36d26089d29933e363d9fa50f3174530b698450e Reviewed-on: https://go-review.googlesource.com/c/go/+/731040 LUCI-TryBot-Result: Go LUCI Reviewed-by: Florian Lehner Reviewed-by: Michael Knyszek Reviewed-by: Cherry Mui --- src/cmd/internal/bootstrap_test/overlaydir_test.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/cmd/internal') diff --git a/src/cmd/internal/bootstrap_test/overlaydir_test.go b/src/cmd/internal/bootstrap_test/overlaydir_test.go index 5812c453ac..bee3214b67 100644 --- a/src/cmd/internal/bootstrap_test/overlaydir_test.go +++ b/src/cmd/internal/bootstrap_test/overlaydir_test.go @@ -43,6 +43,9 @@ func overlayDir(dstRoot, srcRoot string) error { dstPath := filepath.Join(dstRoot, suffix) info, err := entry.Info() + if err != nil { + return err + } perm := info.Mode() & os.ModePerm if info.Mode()&os.ModeSymlink != 0 { info, err = os.Stat(srcPath) -- cgit v1.3-6-g1900