not stop filling struct after env param not found
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
parent
ce67d2f390
commit
a90e073b86
2
env.go
2
env.go
@ -207,7 +207,7 @@ func (c *envConfig) fillValues(ctx context.Context, valueOf reflect.Value) error
|
|||||||
}
|
}
|
||||||
val, ok := os.LookupEnv(tag)
|
val, ok := os.LookupEnv(tag)
|
||||||
if !ok {
|
if !ok {
|
||||||
return nil
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
if err := c.fillValue(ctx, value, val); err != nil {
|
if err := c.fillValue(ctx, value, val); err != nil {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user