Skip to content
Snippets Groups Projects
Unverified Commit 8c3dc0ca authored by Mark Sagi-Kazar's avatar Mark Sagi-Kazar
Browse files

Remove unused code (fixed: unused, structcheck, deadcode linters)

parent e0f927c7
No related branches found
No related tags found
No related merge requests found
......@@ -16,10 +16,7 @@ linters:
- wsl
# TODO: fix me
- unused
- structcheck
- stylecheck
- deadcode
- misspell
- unparam
- goimports
......
......@@ -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
......
......@@ -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 {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment