Merge branch 'master' into master
Some checks failed
automerge / automerge (pull_request) Failing after 19s
dependabot-automerge / automerge (pull_request) Has been skipped
lint / lint (pull_request) Successful in 37s
autoapprove / autoapprove (pull_request) Failing after 35s
test / test (pull_request) Successful in 12m47s
Some checks failed
automerge / automerge (pull_request) Failing after 19s
dependabot-automerge / automerge (pull_request) Has been skipped
lint / lint (pull_request) Successful in 37s
autoapprove / autoapprove (pull_request) Failing after 35s
test / test (pull_request) Successful in 12m47s
This commit is contained in:
commit
d755c3fcc8
6
env.go
6
env.go
@ -25,8 +25,12 @@ func (c *envConfig) Options() config.Options {
|
||||
}
|
||||
|
||||
func (c *envConfig) Init(opts ...options.Option) error {
|
||||
var err error
|
||||
|
||||
for _, o := range opts {
|
||||
o(&c.opts)
|
||||
if err = o(&c.opts); err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
|
||||
if err := config.DefaultBeforeInit(c.opts.Context, c); err != nil && !c.opts.AllowFail {
|
||||
|
Loading…
x
Reference in New Issue
Block a user