Skip to content

Commit

Permalink
Fix updating value from map
Browse files Browse the repository at this point in the history
  • Loading branch information
abdivasiyev authored Oct 9, 2021
1 parent 6ff4981 commit 0f1ccf0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion env.go
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,9 @@ func (e Config) parseValue(typeField reflect.StructField, data map[string]string
var value string
if data != nil {
value = e.getOrDefaultMap(key, defaultValue, data)
} else {
}

if value == "" {
value = e.getOrDefault(key, defaultValue)
}

Expand Down

0 comments on commit 0f1ccf0

Please sign in to comment.