Skip to content

Commit

Permalink
remove print statement
Browse files Browse the repository at this point in the history
  • Loading branch information
DTCurrie committed Nov 19, 2024
1 parent 15a4230 commit 59d245c
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions web/backto.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,8 @@ var hostnameWhitelist = map[string]bool{
func isWhitelisted(hostname string) bool {
fmt.Printf("hostname: %v\n", hostname)

Check failure on line 17 in web/backto.go

View workflow job for this annotation

GitHub Actions / Build and Test

fmt.(Fp|P)rintf* usage found "Printf"

regex, err := regexp.Compile("pr-(\\d+)-appmain-bplesliplq-uc.a.run.app")
if err != nil {
fmt.Errorf("Error compiling regex for whitelisted hostnames: %+v", err)
return false
}

if regex.MatchString(hostname) {
isPRTempEnv, _ := regexp.MatchString("pr-(\\d+)-appmain-bplesliplq-uc.a.run.app", hostname)
if isPRTempEnv {
return true
}

Expand Down

0 comments on commit 59d245c

Please sign in to comment.