1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Merge pull request #333 from calavera/extra_conditional

Remove extra conditional.
This commit is contained in:
aboch 2015-06-25 14:59:19 -07:00
commit f6ee03ae88

View file

@ -11,10 +11,7 @@ import (
)
func (c *controller) validateDatastoreConfig() bool {
if c.cfg == nil || c.cfg.Datastore.Client.Provider == "" || c.cfg.Datastore.Client.Address == "" {
return false
}
return true
return c.cfg != nil && c.cfg.Datastore.Client.Provider != "" && c.cfg.Datastore.Client.Address != ""
}
func (c *controller) initDataStore() error {