fix(conf): Remove redundant validation (#5372)

Co-authored-by: liaogs <liaoguoshun@qq.com>
This commit is contained in:
RUGBEN
2026-01-24 23:46:40 +08:00
committed by GitHub
parent 94e2f5bd12
commit e2bb65d43c

View File

@@ -62,11 +62,7 @@ func Load(file string, v any, opts ...Option) error {
return loader([]byte(os.ExpandEnv(string(content))), v)
}
if err = loader(content, v); err != nil {
return err
}
return validate(v)
return loader(content, v)
}
// LoadConfig loads config into v from file, .json, .yaml and .yml are acceptable.