diff --git a/server/config.go b/server/config.go index 6bf2b22c4..0c1989c7a 100644 --- a/server/config.go +++ b/server/config.go @@ -610,9 +610,9 @@ func lookupAddr(ctx context.Context, resolver *net.Resolver, host string) (strin } func (c *Config) ValidateAuth() ([]error, error) { - if !c.Auth.Enable { - return []error{}, nil - } + if !c.Auth.Enable { + return []error{}, nil + } authConfig := map[string]string{ "ClientId": c.Auth.ClientId, "ClientSecret": c.Auth.ClientSecret,