cmd/go: remove a redundant HasExec check in TestScript/README

The test checks testenv.HasExec right before calling testenv.Command,
but testenv.Command already skips the test if HasExec is false.

Change-Id: I04716bf823a1b76640394a964973ff34c65afb1f
Reviewed-on: https://go-review.googlesource.com/c/go/+/491658
Run-TryBot: Bryan Mills <bcmills@google.com>
Auto-Submit: Bryan Mills <bcmills@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Michael Matloob <matloob@golang.org>
This commit is contained in:
Bryan C. Mills 2023-05-02 12:43:04 -04:00 committed by Bryan Mills
parent 3a872a2262
commit ca49b8d7af
1 changed files with 0 additions and 4 deletions

View File

@ -37,10 +37,6 @@ func checkScriptReadme(t *testing.T, engine *script.Engine, env []string) {
}
args.Conditions = conds.String()
if !testenv.HasExec() {
t.Skipf("updating script README requires os/exec")
}
doc := new(strings.Builder)
cmd := testenv.Command(t, testGo, "doc", "cmd/go/internal/script")
cmd.Env = env