mirror of
https://github.com/TeaOSLab/EdgeAPI.git
synced 2025-11-29 19:40:25 +08:00
优化代码
This commit is contained in:
@@ -8,7 +8,7 @@ func (this *MetricChart) DecodeIgnoredKeys() []string {
|
||||
}
|
||||
|
||||
var result = []string{}
|
||||
err := json.Unmarshal([]byte(this.IgnoredKeys), &result)
|
||||
err := json.Unmarshal(this.IgnoredKeys, &result)
|
||||
if err != nil {
|
||||
// 这里忽略错误
|
||||
return result
|
||||
|
||||
Reference in New Issue
Block a user