From c3a4e33245aa71d286f230f424e550f3ed3789fc Mon Sep 17 00:00:00 2001 From: cnone Date: Sun, 19 May 2019 22:05:42 +0300 Subject: [PATCH] Fix linter issue --- cmd/config.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/cmd/config.go b/cmd/config.go index 3a61fdbe..0d0cc324 100644 --- a/cmd/config.go +++ b/cmd/config.go @@ -46,7 +46,6 @@ func addConfigFlags(flags *pflag.FlagSet) { func getAuthentication(flags *pflag.FlagSet, defaults ...interface{}) (settings.AuthMethod, auth.Auther) { method := settings.AuthMethod(mustGetString(flags, "auth.method")) - var defaultAuther map[string]interface{} for _, arg := range defaults { switch def := arg.(type) { @@ -79,7 +78,6 @@ func getAuthentication(flags *pflag.FlagSet, defaults ...interface{}) (settings. if method == auth.MethodJSONAuth { jsonAuth := &auth.JSONAuth{} - host := mustGetString(flags, "recaptcha.host") key := mustGetString(flags, "recaptcha.key") secret := mustGetString(flags, "recaptcha.secret")