mirror of
https://github.com/grafana/grafana.git
synced 2025-07-31 15:52:23 +08:00
pkg/components: fix ineffassign issues
This commit is contained in:
@ -141,5 +141,9 @@ func getDiff(baseData, newData *simplejson.Json) (interface{}, diff.Diff, error)
|
||||
|
||||
left := make(map[string]interface{})
|
||||
err = json.Unmarshal(leftBytes, &left)
|
||||
if err != nil {
|
||||
return nil, nil, err
|
||||
}
|
||||
|
||||
return left, jsonDiff, nil
|
||||
}
|
||||
|
Reference in New Issue
Block a user