Sort entries
This commit is contained in:
parent
364a467626
commit
c29340c93b
1 changed files with 3 additions and 2 deletions
|
@ -113,10 +113,11 @@ pub fn decrypt(
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
entries.sort_by(|a, b| a.name.cmp(&b.name));
|
||||||
Ok(DecryptedData::Archive(blob, entries))
|
Ok(DecryptedData::Archive(blob, entries))
|
||||||
} else if mime_type == "application/gzip" {
|
} else if mime_type == "application/gzip" {
|
||||||
let entries = vec![];
|
Ok(DecryptedData::Archive(blob, vec![]))
|
||||||
Ok(DecryptedData::Archive(blob, entries))
|
|
||||||
} else {
|
} else {
|
||||||
Ok(DecryptedData::Blob(blob))
|
Ok(DecryptedData::Blob(blob))
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue