From 006554cd0a07caa5f73c9b1bde6f75d291392a32 Mon Sep 17 00:00:00 2001 From: lishuang Date: Sat, 22 Jul 2023 15:39:53 +0800 Subject: [PATCH] fix: fix the jsoniter fatal bug. --- code/rest/matter_model.go | 8 -------- 1 file changed, 8 deletions(-) diff --git a/code/rest/matter_model.go b/code/rest/matter_model.go index edcf88e..7c9756c 100644 --- a/code/rest/matter_model.go +++ b/code/rest/matter_model.go @@ -150,14 +150,6 @@ func (this *Matter) FetchPropMap() map[string]string { // fetch the props func (this *Matter) SetPropMap(propMap map[string]string) { - //恢复panic - defer func() { - fmt.Printf("panic recover check") - if err := recover(); err != nil { - fmt.Printf("occur error while set prop map %s\r\n", err) - } - }() - b, err := jsoniter.ConfigCompatibleWithStandardLibrary.Marshal(propMap) if err != nil { panic(err)