Skip to content

Commit

Permalink
Fix: retry listing 7zip archive entries (#758)
Browse files Browse the repository at this point in the history
  • Loading branch information
emmercm authored Oct 13, 2023
1 parent 5f627d8 commit 5aebf34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/types/files/archives/sevenZip.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export default class SevenZip extends Archive {
*/
for (let attempt = 1; attempt <= 3; attempt += 1) {
const archiveEntries = await this.getArchiveEntriesNotCached(checksumBitmask);
if (archiveEntries) {
if (archiveEntries.length) {
return archiveEntries;
}

Expand Down

0 comments on commit 5aebf34

Please sign in to comment.