瀏覽代碼

Merge pull request #333 from calavera/extra_conditional

Remove extra conditional.
aboch 10 年之前
父節點
當前提交
f6ee03ae88
共有 1 個文件被更改,包括 1 次插入4 次删除
  1. 1 4
      libnetwork/store.go

+ 1 - 4
libnetwork/store.go

@@ -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 {