Skip to content

Commit

Permalink
Fix incorrect unflatten in env provider. Closes #319. (#324)
Browse files Browse the repository at this point in the history
  • Loading branch information
knadh authored Sep 26, 2024
1 parent 09fd5db commit eefc493
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 eefc493

Please sign in to comment.