Skip to content

Commit 6a5df44

Browse files
committed
Add comment to new exported function
1 parent 98f5bb4 commit 6a5df44

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pkg/auth/auth.go

+3
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,9 @@ func IsTenancy(host string) bool {
165165
return strings.HasSuffix(normalizedHost, "."+tenancyHost)
166166
}
167167

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

0 commit comments

Comments
 (0)