diff options
author | Jaime Martinez <jmartinez@gitlab.com> | 2021-05-13 03:50:40 +0300 |
---|---|---|
committer | Jaime Martinez <jmartinez@gitlab.com> | 2021-05-13 03:50:40 +0300 |
commit | b284c7ff42f89b3cc9ca8c2aacde9a15408233ec (patch) | |
tree | f60b49bc16c1ec575faea89fa071c6257c1915f2 /internal/domain | |
parent | d390505f5c4650992bc3f715ecf5af8e2397b6ca (diff) |
Remove HasLookupPath and address feedback
Diffstat (limited to 'internal/domain')
-rw-r--r-- | internal/domain/domain.go | 10 |
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 { |