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
path: root/app.go
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 /app.go
parentd390505f5c4650992bc3f715ecf5af8e2397b6ca (diff)
Remove HasLookupPath and address feedback
Diffstat (limited to 'app.go')
-rw-r--r--app.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/app.go b/app.go
index a65170e6..3b469b2d 100644
--- a/app.go
+++ b/app.go
@@ -132,7 +132,7 @@ func (a *theApp) tryAuxiliaryHandlers(w http.ResponseWriter, r *http.Request, ht
return true
}
- if err := domain.HasLookupPath(r); err != nil {
+ if _, err := domain.GetLookupPath(r); err != nil {
if errors.Is(err, gitlab.ErrDiskDisabled) {
errortracking.Capture(err)
httperrors.Serve500(w)