Skip to content

Commit

Permalink
add err check
Browse files Browse the repository at this point in the history
  • Loading branch information
DTCurrie committed Nov 19, 2024
1 parent 5849863 commit 63f2e8a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion web/backto.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,11 @@ var hostnameWhitelist = map[string]bool{
}

func isWhitelisted(hostname string) bool {
isPRTempEnv, _ := regexp.MatchString("pr-(\\d+)-appmain-bplesliplq-uc.a.run.app", hostname)
isPRTempEnv, err := regexp.MatchString("pr-(\\d+)-appmain-bplesliplq-uc.a.run.app", hostname)
if err != nil {
return false
}

if isPRTempEnv {
return true
}
Expand Down

0 comments on commit 63f2e8a

Please sign in to comment.