Skip to content

Commit 93df31f

Browse files
remove useless Uint8Array
1 parent 6fc4c00 commit 93df31f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

processors/compression/compression.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ async function process(pageData, options, lastModDate = new Date()) {
100100
let startTag;
101101
[startTag, endTag] = tagIndex == -1 ? ["", ""] : EMBEDDED_IMAGE_DATA_TAGS[tagIndex];
102102
const html = getHTMLStartData(pageData, options) + startTag;
103-
const hmtlData = new Uint8Array([...getLength(html.length + 4), ...new Uint8Array([0x74, 0x54, 0x58, 0x74, 0x50, 0x4e, 0x47, 0]), ...new TextEncoder().encode(html)]);
103+
const hmtlData = new Uint8Array([...getLength(html.length + 4), ...[0x74, 0x54, 0x58, 0x74, 0x50, 0x4e, 0x47, 0], ...new TextEncoder().encode(html)]);
104104
await writeData(zipDataWriter.writable, hmtlData);
105105
await writeData(zipDataWriter.writable, getCRC32(hmtlData, 4));
106106
}

0 commit comments

Comments
 (0)