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:
commit
f6ee03ae88
1 changed files with 1 additions and 4 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Reference in a new issue