mirror of
https://github.com/FloatTech/ZeroBot-Plugin.git
synced 2025-12-19 22:00:11 +08:00
✏️ 修复 kanban panic
This commit is contained in:
parent
205036b658
commit
7f8d34e8a0
2
main.go
2
main.go
@ -129,10 +129,10 @@ func printBanner() {
|
|||||||
|
|
||||||
func getKanban() string {
|
func getKanban() string {
|
||||||
err := reg.Connect()
|
err := reg.Connect()
|
||||||
defer reg.Close()
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err.Error()
|
return err.Error()
|
||||||
}
|
}
|
||||||
|
defer reg.Close()
|
||||||
text, err := reg.Get("ZeroBot-Plugin/kanban")
|
text, err := reg.Get("ZeroBot-Plugin/kanban")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err.Error()
|
return err.Error()
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user