Skip to content

Commit

Permalink
🤖 🎨 Autoformat
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanovSPvirtru committed Sep 8, 2023
1 parent 77f5891 commit 049165b
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 @@ -69,7 +69,7 @@ function adjustSliceParams(length: number, start: number, end?: number): [number
result.push(end);
}

return (result as [number, number?]);
return result as [number, number?];
}

class ArrayBufferBinary extends Binary {
Expand Down Expand Up @@ -101,7 +101,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 asHex(): string {
Expand Down Expand Up @@ -148,7 +148,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 asHex(): string {
Expand Down

0 comments on commit 049165b

Please sign in to comment.