Fix linter issue

pull/732/head
cnone 2019-05-19 22:05:42 +03:00
parent aabf0843ab
commit c3a4e33245
1 changed files with 0 additions and 2 deletions

View File

@ -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")