From 6fea990cb956d2eb9212e4d2304de7887b438243 Mon Sep 17 00:00:00 2001 From: Roy Olav Purser Date: Sun, 27 Mar 2022 15:03:39 +0200 Subject: [PATCH] remove empty map --- envconf.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/envconf.go b/envconf.go index cc44d47..e22b710 100644 --- a/envconf.go +++ b/envconf.go @@ -79,7 +79,7 @@ func NewConfig() *Config { lmiddle := splitted[count] rmiddle := splitted[count+1] right = strings.Trim(strings.Join(splitted[count+2:], "_"), "_") - if len(config.mapMapEnv[left][lmiddle][rmiddle]) == 0 { + if len(config.mapMapMapEnv[left][lmiddle][rmiddle]) == 0 { config.mapMapMapEnv[left][lmiddle][rmiddle] = make(map[string]string) } if left != "" && lmiddle != "" && rmiddle != "" && right != "" {