From cef1a1d6e4aeb7189ff05370139ff367736b7e92 Mon Sep 17 00:00:00 2001
From: zhangqian <zhangqian@123.com>
Date: 星期四, 19 十月 2023 14:52:54 +0800
Subject: [PATCH] 去掉无用初始化

---
 service/initdb.go |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/service/initdb.go b/service/initdb.go
index f377d0d..fd7149e 100644
--- a/service/initdb.go
+++ b/service/initdb.go
@@ -3,7 +3,6 @@
 import (
 	"aps_crm/pkg/logx"
 	"context"
-	"errors"
 	"sort"
 )
 
@@ -63,7 +62,8 @@
 // InitDB 鍒濆鍖�
 func (initDBService *InitDBService) InitDB() (err error) {
 	if len(initializerList) == 0 {
-		return errors.New("鏃犲彲鐢ㄥ垵濮嬪寲杩囩▼锛岃妫�鏌ュ垵濮嬪寲鏄惁宸叉墽琛屽畬鎴�")
+		logx.Warn("鏃犲彲鐢ㄥ垵濮嬪寲杩囩▼锛岃妫�鏌ュ垵濮嬪寲鏄惁宸叉墽琛屽畬鎴�")
+		return nil
 	}
 	sort.Sort(&initializerList) // 淇濊瘉鏈変緷璧栫殑 initializer 鎺掑湪鍚庨潰鎵ц
 

--
Gitblit v1.8.0