Skip to content

Commit

Permalink
Fix incorrect unflatten in env provider. Closes #319.
Browse files Browse the repository at this point in the history
  • Loading branch information
knadh committed Sep 25, 2024
1 parent c53f381 commit 286f729
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion providers/env/env.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

0 comments on commit 286f729

Please sign in to comment.