Skip to content

Commit 1d9aaff

Browse files
committed
Lint
1 parent ca00732 commit 1d9aaff

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/util.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ export function arrayBufferToBase64(ab: ArrayBuffer): string {
3636
let binary = '';
3737

3838
// Convert each byte to a character
39-
for (let i = 0; i < bytes.length; i++) {
40-
binary += String.fromCharCode(bytes[i]);
39+
for (const byte of bytes) {
40+
binary += String.fromCharCode(byte);
4141
}
4242

4343
// Encode the binary string as Base64
@@ -55,7 +55,7 @@ export function base64ToArrayBuffer(b64: string): ArrayBuffer {
5555

5656
// Convert each character to its corresponding byte
5757
for (let i = 0; i < len; i++) {
58-
bytes[i] = binaryString.charCodeAt(i);
58+
bytes[i] = binaryString.charCodeAt(i);
5959
}
6060

6161
// Return the ArrayBuffer

0 commit comments

Comments
 (0)