Skip to content

Commit 286f729

Browse files
committed
Fix incorrect unflatten in env provider. Closes #319.
1 parent c53f381 commit 286f729

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

providers/env/env.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,5 +94,9 @@ func (e *Env) Read() (map[string]interface{}, error) {
9494

9595
}
9696

97-
return maps.Unflatten(mp, e.delim), nil
97+
if e.delim != "" {
98+
return maps.Unflatten(mp, e.delim), nil
99+
}
100+
101+
return mp, nil
98102
}

0 commit comments

Comments
 (0)