]> Cypherpunks repositories - gostls13.git/commit
cmd/dist: fix a variable scope bug:
authorMichael Matloob <matloob@golang.org>
Tue, 1 Nov 2022 20:14:06 +0000 (16:14 -0400)
committerMichael Matloob <matloob@golang.org>
Tue, 1 Nov 2022 20:46:55 +0000 (20:46 +0000)
commit50c59194758999487f577030ca11d91c65530559
tree5ba277e364bcba62e5dc6a224a424c77fc5c6071
parent49bbece44c93b4de62ff360268c420e45f27ad63
cmd/dist: fix a variable scope bug:

We reused p so we were deleting the same directory twice instead of two
different directories. Fix that.

For #47257

Change-Id: I315ad87d0a9182e00ae4c11b82986227e2b02e17
Reviewed-on: https://go-review.googlesource.com/c/go/+/447115
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Michael Matloob <matloob@golang.org>
Run-TryBot: Michael Matloob <matloob@golang.org>
Reviewed-by: Bryan Mills <bcmills@google.com>
src/cmd/dist/build.go