continue filling if tag not found

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
Василий Толстов 2021-04-01 10:56:47 +03:00
parent 82243e323c
commit 7c0fcda07a
1 changed files with 1 additions and 1 deletions

2
env.go
View File

@ -223,7 +223,7 @@ func (c *envConfig) fillValues(ctx context.Context, valueOf reflect.Value) error
}
tag, ok := field.Tag.Lookup(c.opts.StructTag)
if !ok {
return nil
continue
}
val, ok := os.LookupEnv(tag)
if !ok {