From 3005ee5b02ed44e3635dfb9e7783c8ee962ea5ff Mon Sep 17 00:00:00 2001 From: fumiama Date: Mon, 9 Aug 2021 12:40:10 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20=E5=AE=8C=E5=96=84=E5=8A=A0?= =?UTF-8?q?=E8=BD=BD=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugin_manager/manager.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/plugin_manager/manager.go b/plugin_manager/manager.go index 7ee7844e28..35bfebe14c 100644 --- a/plugin_manager/manager.go +++ b/plugin_manager/manager.go @@ -403,8 +403,9 @@ func loadConfig() { data, err1 := io.ReadAll(f) if err1 == nil { if len(data) > 0 { - config.Unmarshal(data) - return + if config.Unmarshal(data) == nil { + return + } } } }