From e2bb65d43ca3585290e451c818e3f6c81c1ab144 Mon Sep 17 00:00:00 2001 From: RUGBEN Date: Sat, 24 Jan 2026 23:46:40 +0800 Subject: [PATCH] fix(conf): Remove redundant validation (#5372) Co-authored-by: liaogs --- core/conf/config.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/core/conf/config.go b/core/conf/config.go index 7850c9ba4..481b8ac12 100644 --- a/core/conf/config.go +++ b/core/conf/config.go @@ -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.