From 7f8d34e8a04d64bcc7e99bd23ad1efcff8503a70 Mon Sep 17 00:00:00 2001 From: fumiama Date: Sun, 2 Jan 2022 14:09:27 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=8F=EF=B8=8F=20=20=E4=BF=AE=E5=A4=8D=20ka?= =?UTF-8?q?nban=20panic?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index 082dac3f..b280eee9 100644 --- a/main.go +++ b/main.go @@ -129,10 +129,10 @@ func printBanner() { func getKanban() string { err := reg.Connect() - defer reg.Close() if err != nil { return err.Error() } + defer reg.Close() text, err := reg.Get("ZeroBot-Plugin/kanban") if err != nil { return err.Error()