Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-pages.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaime Martinez <jmartinez@gitlab.com>2021-05-13 03:50:40 +0300
committerJaime Martinez <jmartinez@gitlab.com>2021-05-13 03:50:40 +0300
commitb284c7ff42f89b3cc9ca8c2aacde9a15408233ec (patch)
treef60b49bc16c1ec575faea89fa071c6257c1915f2 /internal/domain
parentd390505f5c4650992bc3f715ecf5af8e2397b6ca (diff)
Remove HasLookupPath and address feedback
Diffstat (limited to 'internal/domain')
-rw-r--r--internal/domain/domain.go10
1 files changed, 0 insertions, 10 deletions
diff --git a/internal/domain/domain.go b/internal/domain/domain.go
index c5b2ec7b..94888e34 100644
--- a/internal/domain/domain.go
+++ b/internal/domain/domain.go
@@ -101,16 +101,6 @@ func (d *Domain) GetProjectID(r *http.Request) uint64 {
return 0
}
-// HasLookupPath figures out if the project exists that the user tries to access
-func (d *Domain) HasLookupPath(r *http.Request) error {
- if d == nil {
- return ErrDomainDoesNotExist
- }
-
- _, err := d.GetLookupPath(r)
- return err
-}
-
// EnsureCertificate parses the PEM-encoded certificate for the domain
func (d *Domain) EnsureCertificate() (*tls.Certificate, error) {
if d == nil || len(d.CertificateKey) == 0 || len(d.CertificateCert) == 0 {