mirror of
https://github.com/eyebluecn/tank.git
synced 2024-04-21 12:32:16 +00:00
fix: fix the jsoniter fatal bug.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user