Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
internal/testenv: always Cleanup to appease go vet
vet from Go 1.22 complains about cancelCtx being potentially leaked: exec.go:140:4: the cancelCtx function is not used on all paths (possible context leak) exec.go:192:2: this return statement may be reached without using the cancelCtx var defined on line 140 The code was fine with that, and in practice the leak does not happen, but having the vet warning around is still distracting. Thankfully, Go 1.14 is very old at this point, and per go.mod, this module now requires Go 1.18 or later, so we can clean this up. Change-Id: I4c402ad233e9b33a6d51c98ba0833c67fe01b209 Reviewed-on: https://go-review.googlesource.com/c/tools/+/563675 Reviewed-by: Than McIntosh <thanm@google.com> Auto-Submit: Robert Findley <rfindley@google.com> Reviewed-by: Robert Findley <rfindley@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
- Loading branch information