From 6885ea80361ef3056c4260c630cd4980d6bbfbbf 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 --- store.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/store.go b/store.go index 33a711d..7572e03 100644 --- a/store.go +++ b/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 {