From 1d5698936a12ce8fb4578273d9fdf92c36c09128 Mon Sep 17 00:00:00 2001 From: David Calavera Date: Thu, 25 Jun 2015 09:58:16 -0700 Subject: [PATCH] Remove extra conditional. Signed-off-by: David Calavera --- libnetwork/store.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/libnetwork/store.go b/libnetwork/store.go index 33a711d5d8..7572e03e2d 100644 --- a/libnetwork/store.go +++ b/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 {