mirror of
https://github.com/golang/go.git
synced 2026-01-29 07:02:05 +03:00
cmd/go/internal/auth: fix typo
Change-Id: Ic113d59144aa2d37c8988559fbc086f5c29c0b69
GitHub-Last-Rev: e2623be0a0
GitHub-Pull-Request: golang/go#76397
Reviewed-on: https://go-review.googlesource.com/c/go/+/722861
Reviewed-by: Michael Matloob <matloob@google.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Reviewed-by: Michael Matloob <matloob@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
This commit is contained in:
@@ -48,7 +48,7 @@ func runAuthCommand(command string, url string, res *http.Response) (map[string]
|
||||
// parseUserAuth parses the output from a GOAUTH command and
|
||||
// returns a mapping of prefix → http.Header without the leading "https://"
|
||||
// or an error if the data does not follow the expected format.
|
||||
// Returns an nil error and an empty map if the data is empty.
|
||||
// Returns a nil error and an empty map if the data is empty.
|
||||
// See the expected format in 'go help goauth'.
|
||||
func parseUserAuth(data string) (map[string]http.Header, error) {
|
||||
credentials := make(map[string]http.Header)
|
||||
|
||||
Reference in New Issue
Block a user