mirror of
https://github.com/restic/restic.git
synced 2025-03-13 16:20:52 +00:00
Cleanup pack header check
This commit is contained in:
parent
94dc9a0fa7
commit
2f36e044db
@ -439,7 +439,7 @@ func (r *Repository) decompressUnpacked(p []byte) ([]byte, error) {
|
||||
return p, nil
|
||||
}
|
||||
|
||||
if len(p) < 1 {
|
||||
if len(p) == 0 {
|
||||
// too short for version header
|
||||
return p, nil
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user