chunked: drop support for uncompressed metadata blobs
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
This commit is contained in:
parent
7304a21410
commit
032aae3a70
|
|
@ -305,8 +305,5 @@ func decodeAndValidateBlob(blob []byte, lengthUncompressed uint64, expectedUncom
|
|||
defer decoder.Close()
|
||||
|
||||
b := make([]byte, 0, lengthUncompressed)
|
||||
if decoded, err := decoder.DecodeAll(blob, b); err == nil {
|
||||
return decoded, nil
|
||||
}
|
||||
return blob, nil
|
||||
return decoder.DecodeAll(blob, b)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue