mirror of
https://github.com/restic/restic.git
synced 2025-08-20 09:07:29 +00:00
Cleanup pack header check
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user