Fix govet error in consul provider
This commit is contained in:
parent
8b1df456eb
commit
a5769a9c99
|
@ -52,7 +52,7 @@ func (c *Config) Client() (*consulapi.Client, error) {
|
||||||
} else {
|
} else {
|
||||||
username = c.HttpAuth
|
username = c.HttpAuth
|
||||||
}
|
}
|
||||||
config.HttpAuth = &consulapi.HttpBasicAuth{username, password}
|
config.HttpAuth = &consulapi.HttpBasicAuth{Username: username, Password: password}
|
||||||
}
|
}
|
||||||
|
|
||||||
if c.Token != "" {
|
if c.Token != "" {
|
||||||
|
|
Loading…
Reference in New Issue