chunked: drop support for uncompressed metadata blobs

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
This commit is contained in:
Giuseppe Scrivano 2023-06-15 11:30:29 +02:00
parent 7304a21410
commit 032aae3a70
No known key found for this signature in database
GPG Key ID: 67E38F7A8BA21772
1 changed files with 1 additions and 4 deletions

View File

@ -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)
}