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>2020-05-25 04:55:06 +0300
committerJaime Martinez <jmartinez@gitlab.com>2020-06-01 03:39:03 +0300
commit01734cae272c4f898b233429aeba19892fa4857e (patch)
treee6153be8743403fbb5a35a77508363cf32d76a06 /app.go
parent9daf8dcc19c486c787d0fb4ebfa19e21ac492cd1 (diff)
Enable deadcode linter
Diffstat (limited to 'app.go')
-rw-r--r--app.go12
1 files changed, 2 insertions, 10 deletions
diff --git a/app.go b/app.go
index 8cfeef00..92e0142b 100644
--- a/app.go
+++ b/app.go
@@ -2,7 +2,6 @@ package main
import (
"crypto/tls"
- "errors"
"fmt"
"net"
"net/http"
@@ -15,7 +14,7 @@ import (
"gitlab.com/gitlab-org/labkit/errortracking"
labmetrics "gitlab.com/gitlab-org/labkit/metrics"
"gitlab.com/gitlab-org/labkit/monitoring"
- mimedb "gitlab.com/lupine/go-mimedb"
+ "gitlab.com/lupine/go-mimedb"
"gitlab.com/gitlab-org/gitlab-pages/internal/acme"
"gitlab.com/gitlab-org/gitlab-pages/internal/artifact"
@@ -32,20 +31,13 @@ import (
)
const (
- xForwardedProto = "X-Forwarded-Proto"
- xForwardedHost = "X-Forwarded-Host"
- xForwardedProtoHTTPS = "https"
+ xForwardedHost = "X-Forwarded-Host"
)
var (
corsHandler = cors.New(cors.Options{AllowedMethods: []string{"GET"}})
)
-var (
- errStartListener = errors.New("Could not start listener")
- errX509KeyPair = errors.New("Could not initialize KeyPair")
-)
-
type theApp struct {
appConfig
domains *source.Domains