mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
fix "call of Unmarshal passes non-pointer as second argument"
This commit is contained in:
parent
826f96b6f3
commit
e0f5996560
|
@ -117,7 +117,7 @@ func Delete(url string, jwt string) error {
|
|||
return nil
|
||||
}
|
||||
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 {
|
||||
return errors.New(s)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue