diff --git a/.golangci.yml b/.golangci.yml index 824484d612fc7c28c700ae13ceb52c97389a3b6c..45cfc35fd36991bd4a8cd56a8f22ed2ae66eb21b 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -16,10 +16,7 @@ linters: - wsl # TODO: fix me - - unused - - structcheck - stylecheck - - deadcode - misspell - unparam - goimports diff --git a/connector/google/google.go b/connector/google/google.go index 84e5580d519f0c3d977206a79f6f2e6e2070d4f0..7561ca4d3b35bc1d08f544f108914760099955a6 100644 --- a/connector/google/google.go +++ b/connector/google/google.go @@ -105,7 +105,6 @@ type googleConnector struct { redirectURI string oauth2Config *oauth2.Config verifier *oidc.IDTokenVerifier - ctx context.Context cancel context.CancelFunc logger log.Logger hostedDomains []string diff --git a/server/templates.go b/server/templates.go index 88aeace0bd2994641f11fec005073bfe05150d6f..13dda8f1ab419b1a28340e5de0648d4ea414953e 100644 --- a/server/templates.go +++ b/server/templates.go @@ -47,19 +47,6 @@ type webConfig struct { extra map[string]string } -func join(base, path string) string { - b := strings.HasSuffix(base, "/") - p := strings.HasPrefix(path, "/") - switch { - case b && p: - return base + path[1:] - case b || p: - return base + path - default: - return base + "/" + path - } -} - func dirExists(dir string) error { stat, err := os.Stat(dir) if err != nil {