Skip to content

Commit

Permalink
Clean up tenancyHost const
Browse files Browse the repository at this point in the history
  • Loading branch information
jtmcg committed Oct 11, 2024
1 parent 877a8e3 commit 98f5bb4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 0 additions & 2 deletions pkg/api/http_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,6 @@ const (
modulePath = "github.com/cli/go-gh"
timeZone = "Time-Zone"
userAgent = "User-Agent"
// tenancyHost is the domain name of a tenancy GitHub instance.
tenancyHost = "ghe.com"
)

var jsonTypeRE = regexp.MustCompile(`[/+]json($|;)`)
Expand Down
5 changes: 2 additions & 3 deletions pkg/auth/auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ const (
hostsKey = "hosts"
localhost = "github.localhost"
oauthToken = "oauth_token"
// TenancyHost is the domain name of a tenancy GitHub instance.
tenancyHost = "ghe.com"
)

// TokenForHost retrieves an authentication token and the source of that token for the specified
Expand Down Expand Up @@ -149,9 +151,6 @@ func defaultHost(cfg *config.Config) (string, string) {
return github, defaultSource
}

// TenancyHost is the domain name of a tenancy GitHub instance.
const tenancyHost = "ghe.com"

// IsEnterprise determines if a provided host is a GitHub Enterprise Server instance,
// rather than GitHub.com or a tenancy GitHub instance.
func IsEnterprise(host string) bool {
Expand Down

0 comments on commit 98f5bb4

Please sign in to comment.