From 508e579f3e0bfa1e2f4b7a6de1b79f73a4dbdb71 Mon Sep 17 00:00:00 2001 From: Todd Gruben Date: Mon, 3 Mar 2014 17:22:26 +0000 Subject: [PATCH] fixed bad checkin --- config/config.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/config/config.go b/config/config.go index c7e889bd9..f01ddcfb4 100644 --- a/config/config.go +++ b/config/config.go @@ -8,7 +8,6 @@ import ( "sync" "launchpad.net/goyaml" - "github.com/davecgh/go-spew/spew" ) @@ -42,10 +41,11 @@ func GetString(key string) string { } func GetStringArray(key string) []string { - return config.GetStringArray(key) + res,_:= config.GetStringArray(key) + return res } func GetStringArrayDefault(key string,def []string) []string { - res,ok = config.GetStringArray(key) + res,ok := config.GetStringArray(key) if ! ok{ return def @@ -168,7 +168,7 @@ func (self *Config) GetStringArray(key string) ([]string,bool){ for _,v:= range value.([]interface{}){ results=append(results,v.(string)) } - return results + return results,ok } return []string{},ok }