From ab7e86218d33e06d1d1b0a0a2380297ef8a18668 Mon Sep 17 00:00:00 2001 From: fumiama Date: Mon, 9 Aug 2021 12:50:04 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=A9=F0=9F=91=8C=20make=20lint=20happy?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugin_manager/manager.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/plugin_manager/manager.go b/plugin_manager/manager.go index 35bfebe1..0ec62e8d 100644 --- a/plugin_manager/manager.go +++ b/plugin_manager/manager.go @@ -322,9 +322,8 @@ func init() { // 插件主体 if ans != r { ctx.Send("答案不对哦,再想想吧~") return false - } else { - return true } + return true } } } @@ -430,7 +429,6 @@ func saveConfig() error { _, err2 := f.Write(data) return err2 } - } else { - return nil } + return nil }