Skip to content

Commit 94432a8

Browse files
committed
run deno fmt
1 parent bdfa745 commit 94432a8

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

tasks/bundle-wasm.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { brotliCompressSync, constants } from "node:zlib";
22

3-
const Z85 = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ.-:+=^!/*?&<>()[]{}@%$#";
3+
const Z85 =
4+
"0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ.-:+=^!/*?&<>()[]{}@%$#";
45

56
function encodeZ85(data: Uint8Array): string {
67
const padLen = (4 - (data.length % 4)) % 4;
@@ -11,7 +12,8 @@ function encodeZ85(data: Uint8Array): string {
1112
}
1213
const out: string[] = [];
1314
for (let i = 0; i < src.length; i += 4) {
14-
const v = src[i] * 16777216 + src[i + 1] * 65536 + src[i + 2] * 256 + src[i + 3];
15+
const v = src[i] * 16777216 + src[i + 1] * 65536 + src[i + 2] * 256 +
16+
src[i + 3];
1517
out.push(
1618
Z85[Math.floor(v / 52200625)],
1719
Z85[Math.floor(v / 614125) % 85],

0 commit comments

Comments
 (0)