Skip to content

Commit

Permalink
Merge 4be3a02 into 44a54f5
Browse files Browse the repository at this point in the history
  • Loading branch information
ForbesLindesay committed Mar 15, 2022
2 parents 44a54f5 + 4be3a02 commit a2966b9
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/utils/base64.ts
Expand Up @@ -17,9 +17,7 @@ function b64ToUint6(nChr: number): number {
? nChr + 4
: nChr === 43
? 62
: nChr === 47
? 63
: 0;
: 63;
}

export function base64Decode(str: string): Uint8Array {
Expand Down Expand Up @@ -60,9 +58,7 @@ function uint6ToB64(nUint6: number): number {
? nUint6 - 4
: nUint6 === 62
? 43
: nUint6 === 63
? 47
: 65;
: 47;
}

export function base64Encode(bytes: Uint8Array): string {
Expand Down

0 comments on commit a2966b9

Please sign in to comment.