Skip to content

Commit 27a84da

Browse files
committed
Style.
1 parent 295b750 commit 27a84da

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tools/file_packager.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1006,11 +1006,11 @@ def generate_js(data_target, data_files, metadata):
10061006
}
10071007
return iterate();
10081008
} else {
1009-
let index = 0;
10101009
const packageData = new Uint8Array(chunks.map((c) => c.length).reduce((a, b) => a + b, 0));
1010+
let offset = 0;
10111011
for (const chunk of chunks) {
1012-
packageData.set(chunk, index);
1013-
index += chunk.length;
1012+
packageData.set(chunk, offset);
1013+
offset += chunk.length;
10141014
}
10151015
10161016
callback(packageData.buffer);

0 commit comments

Comments
 (0)