continue filling if tag not found
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
parent
82243e323c
commit
7c0fcda07a
2
env.go
2
env.go
@ -223,7 +223,7 @@ func (c *envConfig) fillValues(ctx context.Context, valueOf reflect.Value) error
|
|||||||
}
|
}
|
||||||
tag, ok := field.Tag.Lookup(c.opts.StructTag)
|
tag, ok := field.Tag.Lookup(c.opts.StructTag)
|
||||||
if !ok {
|
if !ok {
|
||||||
return nil
|
continue
|
||||||
}
|
}
|
||||||
val, ok := os.LookupEnv(tag)
|
val, ok := os.LookupEnv(tag)
|
||||||
if !ok {
|
if !ok {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user