mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-04 23:17:50 +00:00
Change type to []byte
This commit is contained in:
@@ -69,9 +69,9 @@ func (storage *SimpleRESTStorage) Delete(id string) (<-chan interface{}, error)
|
||||
return storage.channel, storage.err
|
||||
}
|
||||
|
||||
func (storage *SimpleRESTStorage) Extract(body string) (interface{}, error) {
|
||||
func (storage *SimpleRESTStorage) Extract(body []byte) (interface{}, error) {
|
||||
var item Simple
|
||||
json.Unmarshal([]byte(body), &item)
|
||||
json.Unmarshal(body, &item)
|
||||
return item, storage.err
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user