mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Remove json alteration
This commit is contained in:
parent
51455b1ee0
commit
e09383bccf
1 changed files with 1 additions and 1 deletions
|
@ -32,7 +32,7 @@ func NewImgJson(src []byte) (*Image, error) {
|
|||
func NewMultipleImgJson(src []byte) ([]*Image, error) {
|
||||
ret := []*Image{}
|
||||
|
||||
dec := json.NewDecoder(strings.NewReader(strings.Replace(string(src), "null", "\"\"", -1)))
|
||||
dec := json.NewDecoder(strings.NewReader(string(src)))
|
||||
for {
|
||||
m := &Image{}
|
||||
if err := dec.Decode(m); err == io.EOF {
|
||||
|
|
Loading…
Reference in a new issue