Skip to content

Commit

Permalink
fix: merge issues
Browse files Browse the repository at this point in the history
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
  • Loading branch information
caarlos0 committed Aug 30, 2021
1 parent 5dd6d0c commit d96cac5
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions env.go
Original file line number Diff line number Diff line change
Expand Up @@ -236,10 +236,7 @@ func get(field reflect.StructField, opts []Options) (val string, err error) {
var notEmpty bool

required := opts[0].RequiredIfNoDef
expand := strings.EqualFold(field.Tag.Get("envExpand"), "true")

key, tags := parseKeyForOption(field.Tag.Get(getTagName(opts)))

for _, tag := range tags {
switch tag {
case "":
Expand Down

0 comments on commit d96cac5

Please sign in to comment.