mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Remove extra conditional.
Signed-off-by: David Calavera <david.calavera@gmail.com>
This commit is contained in:
parent
ce88039f44
commit
1d5698936a
1 changed files with 1 additions and 4 deletions
|
@ -11,10 +11,7 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
func (c *controller) validateDatastoreConfig() bool {
|
func (c *controller) validateDatastoreConfig() bool {
|
||||||
if c.cfg == nil || c.cfg.Datastore.Client.Provider == "" || c.cfg.Datastore.Client.Address == "" {
|
return c.cfg != nil && c.cfg.Datastore.Client.Provider != "" && c.cfg.Datastore.Client.Address != ""
|
||||||
return false
|
|
||||||
}
|
|
||||||
return true
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c *controller) initDataStore() error {
|
func (c *controller) initDataStore() error {
|
||||||
|
|
Loading…
Add table
Reference in a new issue