mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-02-09 09:17:28 +08:00
fix "call of Unmarshal passes non-pointer as second argument"
This commit is contained in:
@@ -117,7 +117,7 @@ func Delete(url string, jwt string) error {
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
m := make(map[string]interface{})
|
m := make(map[string]interface{})
|
||||||
if e := json.Unmarshal(body, m); e == nil {
|
if e := json.Unmarshal(body, &m); e == nil {
|
||||||
if s, ok := m["error"].(string); ok {
|
if s, ok := m["error"].(string); ok {
|
||||||
return errors.New(s)
|
return errors.New(s)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user