Skip to content

Commit

Permalink
Add comment to new exported function
Browse files Browse the repository at this point in the history
  • Loading branch information
jtmcg committed Oct 14, 2024
1 parent 98f5bb4 commit 6a5df44
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/auth/auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,9 @@ func IsTenancy(host string) bool {
return strings.HasSuffix(normalizedHost, "."+tenancyHost)
}

// NormalizeHostname ensures the host matches the values used throughout
// the rest of the codebase with respect to hostnames. These are github,
// localhost, and tenancyHost.
func NormalizeHostname(host string) string {
hostname := strings.ToLower(host)
if strings.HasSuffix(hostname, "."+github) {
Expand Down

0 comments on commit 6a5df44

Please sign in to comment.