Skip to content

Commit

Permalink
🤖 🎨 Autoformat
Browse files Browse the repository at this point in the history
Signed-off-by: sivanov <[email protected]>
  • Loading branch information
ivanovSPvirtru committed Sep 6, 2023
1 parent dc93b78 commit 38e0d32
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/tdf3/src/binary.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ class ArrayBufferBinary extends Binary {

override asB64(): string {
const uint8Array = new Uint8Array(this.value);
return window.btoa([...uint8Array].map(byte => String.fromCharCode(byte)).join(''));
return window.btoa([...uint8Array].map((byte) => String.fromCharCode(byte)).join(''));
}

override isArrayBuffer(): boolean {
Expand Down Expand Up @@ -140,7 +140,7 @@ class ByteArrayBinary extends Binary {

override asB64(): string {
const uint8Array = new Uint8Array(this.value);
return window.btoa([...uint8Array].map(byte => String.fromCharCode(byte)).join(''));
return window.btoa([...uint8Array].map((byte) => String.fromCharCode(byte)).join(''));
}

override isByteArray(): boolean {
Expand Down Expand Up @@ -189,7 +189,7 @@ class StringBinary extends Binary {

override asB64(): string {
const uint8Array: Uint8Array = new TextEncoder().encode(this.value);
return window.btoa([...uint8Array].map(byte => String.fromCharCode(byte)).join(''));
return window.btoa([...uint8Array].map((byte) => String.fromCharCode(byte)).join(''));
}

override isString(): boolean {
Expand Down

0 comments on commit 38e0d32

Please sign in to comment.