From eefc49380e91cc5e503b1098717fe6263a7b8b94 Mon Sep 17 00:00:00 2001 From: Kailash Nadh Date: Thu, 26 Sep 2024 13:01:31 +0530 Subject: [PATCH] Fix incorrect unflatten in env provider. Closes #319. (#324) --- providers/env/env.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/providers/env/env.go b/providers/env/env.go index 5ec252bf..edd8e33b 100644 --- a/providers/env/env.go +++ b/providers/env/env.go @@ -94,5 +94,9 @@ func (e *Env) Read() (map[string]interface{}, error) { } - return maps.Unflatten(mp, e.delim), nil + if e.delim != "" { + return maps.Unflatten(mp, e.delim), nil + } + + return mp, nil }