From 286f7294ebc690e1084e3927e833f4d9a323f201 Mon Sep 17 00:00:00 2001 From: Kailash Nadh Date: Wed, 25 Sep 2024 11:46:13 +0530 Subject: [PATCH] Fix incorrect unflatten in env provider. Closes #319. --- 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 }