mirror of
https://github.com/FloatTech/ZeroBot-Plugin.git
synced 2025-12-18 20:50:12 +08:00
chore(lint): 改进代码样式 (#1144)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
This commit is contained in:
parent
164c71a3a3
commit
6a747d2f9d
@ -61,7 +61,7 @@ var (
|
||||
dbInstance *db
|
||||
// 开启并检查数据库链接
|
||||
getDB = fcext.DoOnceOnSuccess(func(ctx *zero.Ctx) bool {
|
||||
var err error = initializeDB(engine.DataFolder() + dbPath)
|
||||
var err = initializeDB(engine.DataFolder() + dbPath)
|
||||
if err != nil {
|
||||
// logrus.Errorln(logPrefix+"initializeDB ERROR: ", err)
|
||||
ctx.SendChain(message.Text("[mc-ob] ERROR: ", err))
|
||||
|
||||
Loading…
Reference in New Issue
Block a user