diff options
| author | Kir Kolyshkin <kolyshkin@gmail.com> | 2024-08-29 17:35:13 -0700 |
|---|---|---|
| committer | Gopher Robot <gobot@golang.org> | 2024-08-30 17:09:46 +0000 |
| commit | 7300b9e633f8b8cb49e2e95f4c4693657ded3451 (patch) | |
| tree | 10675a347d4583328dc872ce63943f694b2f6647 /src/syscall/exec_linux.go | |
| parent | b648cd620f47c2981420b032def1e6f6491ef294 (diff) | |
| download | go-7300b9e633f8b8cb49e2e95f4c4693657ded3451.tar.xz | |
internal/testenv: simplify hasSymlink for windows
1. Combine two functions into one.
2. Use errors.Is to check for wrapped errors.
3. Use sync.OnceValues.
Change-Id: I25f55d31bb658ff08da209b1740e9dff579cca69
Reviewed-on: https://go-review.googlesource.com/c/go/+/609797
Reviewed-by: Ian Lance Taylor <iant@google.com>
Auto-Submit: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Alan Donovan <adonovan@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Commit-Queue: Ian Lance Taylor <iant@golang.org>
Diffstat (limited to 'src/syscall/exec_linux.go')
0 files changed, 0 insertions, 0 deletions
