mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
cmd/go/internal/vcweb: close the .access file
For #71112 Change-Id: Ifda4fc8de148c42a2154da54b53d7215b9a6faa0 Reviewed-on: https://go-review.googlesource.com/c/go/+/640175 LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Auto-Submit: Ian Lance Taylor <iant@golang.org> Auto-Submit: Ian Lance Taylor <iant@google.com> Reviewed-by: Michael Matloob <matloob@golang.org> Reviewed-by: Ian Lance Taylor <iant@google.com>
This commit is contained in:
parent
31cabcf084
commit
5da026354c
1 changed files with 1 additions and 0 deletions
|
|
@ -63,6 +63,7 @@ func (h *authHandler) Handler(dir string, env []string, logger *log.Logger) (htt
|
|||
var err error
|
||||
accessFile, err = fs.Open(path.Join(accessDir, ".access"))
|
||||
if err == nil {
|
||||
defer accessFile.Close()
|
||||
break
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue