Skip to content

Commit eb9f844

Browse files
committed
cache2: handle non id 0 single file archives
1 parent a574c22 commit eb9f844

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

cache2-ts/src/Cache.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,8 @@ export class ArchiveData {
9999

100100
this.decryptedData = data;
101101

102-
if (this.maxFile == 0) {
103-
this.files.get(0)!.data = data;
102+
if (this.files.size == 1) {
103+
this.files.values().next().value!.data = data;
104104
} else {
105105
let fileCount = this.files.size;
106106
let dv = Reader.makeViewOf(DataView, data);

0 commit comments

Comments
 (0)