Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
DTCurrie committed Nov 20, 2024
1 parent f5d55db commit dae5302
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions web/backto.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ var hostnameWhitelist = map[string]bool{

var prTempEnvPattern = "pr-(\\d+)-appmain-bplesliplq-uc.a.run.app"

// isWhitelisted returns true if the passed hostname is whitelisted or a temporary PR environment
// isWhitelisted returns true if the passed hostname is whitelisted or a temporary PR environment.
func isWhitelisted(hostname string) bool {
isPRTempEnv, err := regexp.MatchString(prTempEnvPattern, hostname)
if err != nil {
Expand All @@ -28,7 +28,7 @@ func isWhitelisted(hostname string) bool {
return hostnameWhitelist[hostname]
}

// isAllowedURLScheme returns true if the passed URL is using a "https" schema, or "http" for "localhost" URLs
// isAllowedURLScheme returns true if the passed URL is using a "https" schema, or "http" for "localhost" URLs.
func isAllowedURLScheme(url *url.URL) bool {
if url.Scheme == "https" {
return true
Expand Down

0 comments on commit dae5302

Please sign in to comment.