From b9cbee046203663bb013d53f8df5dde2ed5364b5 Mon Sep 17 00:00:00 2001 From: William Martin Date: Thu, 19 Oct 2023 12:39:31 +0200 Subject: [PATCH] Remove incorrect comment about HasEnvToken --- internal/config/config.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/internal/config/config.go b/internal/config/config.go index faa6497e6..96a7f0716 100644 --- a/internal/config/config.go +++ b/internal/config/config.go @@ -139,10 +139,6 @@ func (c *AuthConfig) HasEnvToken() bool { // It has to use a hostname that is not going to be found in the hosts so that it // can guarantee that tokens will only be returned from a set env var. // Discussed here, but maybe worth revisiting: https://github.com/cli/cli/pull/7169#discussion_r1136979033 - // - // By providing example.com. it's also _only_ looking for GH_ENTERPRISE_TOKEN or GITHUB_ENTERPRISE_TOKEN - // or the GITHUB_TOKEN if we happen to be in a codespace?? This doesn't seem to reflect the actual - // name of the function at all. token, _ := ghAuth.TokenFromEnvOrConfig(hostname) return token != "" }