mirror of
https://github.com/TeaOSLab/EdgeAPI.git
synced 2025-12-26 23:16:36 +08:00
优化代码
This commit is contained in:
@@ -10,7 +10,7 @@ func (this *RegionProvider) DecodeCodes() []string {
|
||||
return []string{}
|
||||
}
|
||||
result := []string{}
|
||||
err := json.Unmarshal([]byte(this.Codes), &result)
|
||||
err := json.Unmarshal(this.Codes, &result)
|
||||
if err != nil {
|
||||
logs.Error(err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user