Fix access token validation
The access token was not be validated when there were additional validations errors with the named colors
This commit is contained in:
parent
9b20413d64
commit
ce5f14db5d
@ -42,8 +42,9 @@ func GetConfig() *Config {
|
||||
// Validate configuration struct
|
||||
func (c *Config) Validate() error {
|
||||
var err error
|
||||
|
||||
if c.AccessToken == "" {
|
||||
err = errors.New("access_token is not set")
|
||||
return errors.New("access_token is not set")
|
||||
}
|
||||
|
||||
if err = c.validateColors(); err != nil {
|
||||
|
Loading…
Reference in New Issue
Block a user