]> Cypherpunks repositories - gostls13.git/commit
cmd/go/internal/web: remove a redundant return value
authorBryan C. Mills <bcmills@google.com>
Wed, 9 Aug 2023 21:22:20 +0000 (17:22 -0400)
committerGopher Robot <gobot@golang.org>
Thu, 10 Aug 2023 17:34:27 +0000 (17:34 +0000)
commit7c2b69080a0b9e35174cc9c93497b6e7176f8275
tree982e404e0a06232133b4c792328072416b9df9b7
parent8cb5c55118a8273e1cc605b8ba167297808c4eda
cmd/go/internal/web: remove a redundant return value

The URL return value from the fetch helper in web.get was always
either the passed in URL (on success) or nil (on failure).
Remove it to reduce code complexity.

For #61877.

Change-Id: I0ce4602b921d1c996aa988e7d3f83996511ccd72
Reviewed-on: https://go-review.googlesource.com/c/go/+/518016
Run-TryBot: Bryan Mills <bcmills@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Michael Matloob <matloob@golang.org>
Auto-Submit: Bryan Mills <bcmills@google.com>
src/cmd/go/internal/web/http.go