From dc2d930520cd528129330098e868c7fffe8349b9 Mon Sep 17 00:00:00 2001 From: "Guillaume J. Charmes" Date: Fri, 22 Mar 2013 14:27:10 -0700 Subject: [PATCH] Remove the json alterations when decoding --- registry.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/registry.go b/registry.go index 309fe3c52c..62394d63fc 100644 --- a/registry.go +++ b/registry.go @@ -21,8 +21,6 @@ func NewImgJson(src []byte) (*Image, error) { Debugf("Json string: {%s}\n", src) // FIXME: Is there a cleaner way to "puryfy" the input json? - src = []byte(strings.Replace(string(src), "null", "\"\"", -1)) - if err := json.Unmarshal(src, ret); err != nil { return nil, err }