From afa50b4fca2c580da4e7f27b5d41ae81c8805e49 Mon Sep 17 00:00:00 2001 From: Roy Olav Purser Date: Sat, 15 Jan 2022 21:35:37 +0100 Subject: [PATCH] remove invalid map --- envconf.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/envconf.go b/envconf.go index 780c499..c5ef0a4 100644 --- a/envconf.go +++ b/envconf.go @@ -302,7 +302,7 @@ func (c *Config) getRawMap(key string, dtype DataType) (empty map[string]cValue) if ok { for k, v := range entries { - if v.dtype == dtype { + if (v.dtype == dtype) && (v.parsed.err == nil) { retval[k] = v.parsed } else { return