2
2
mirror of https://github.com/octoleo/restic.git synced 2024-11-26 14:56:29 +00:00

Cleanup pack header check

This commit is contained in:
Michael Eischer 2022-04-16 21:05:15 +02:00
parent 94dc9a0fa7
commit 2f36e044db

View File

@ -439,7 +439,7 @@ func (r *Repository) decompressUnpacked(p []byte) ([]byte, error) {
return p, nil return p, nil
} }
if len(p) < 1 { if len(p) == 0 {
// too short for version header // too short for version header
return p, nil return p, nil
} }