Explorar o código

Remove the json alterations when decoding

Guillaume J. Charmes %!s(int64=12) %!d(string=hai) anos
pai
achega
dc2d930520
Modificáronse 1 ficheiros con 0 adicións e 2 borrados
  1. 0 2
      registry.go

+ 0 - 2
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
 	}