We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a574c22 commit eb9f844Copy full SHA for eb9f844
1 file changed
cache2-ts/src/Cache.ts
@@ -99,8 +99,8 @@ export class ArchiveData {
99
100
this.decryptedData = data;
101
102
- if (this.maxFile == 0) {
103
- this.files.get(0)!.data = data;
+ if (this.files.size == 1) {
+ this.files.values().next().value!.data = data;
104
} else {
105
let fileCount = this.files.size;
106
let dv = Reader.makeViewOf(DataView, data);
0 commit comments