diff options
| author | Kagami Sascha Rosylight <saschanaz@outlook.com> | 2022-12-22 16:01:59 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-12-22 16:01:59 +0900 |
| commit | f1fd1d2585bd5230caea4c7b8814c2cf007e57cc (patch) | |
| tree | 212dd8f70312b9237484057deba6bc9611ec44d0 /packages/client/src/scripts/2fa.ts | |
| parent | Improve Dockerfile (#9105) (diff) | |
| download | sharkey-f1fd1d2585bd5230caea4c7b8814c2cf007e57cc.tar.gz sharkey-f1fd1d2585bd5230caea4c7b8814c2cf007e57cc.tar.bz2 sharkey-f1fd1d2585bd5230caea4c7b8814c2cf007e57cc.zip | |
style: add missing trailing commas (#9387)
Diffstat (limited to 'packages/client/src/scripts/2fa.ts')
| -rw-r--r-- | packages/client/src/scripts/2fa.ts | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/packages/client/src/scripts/2fa.ts b/packages/client/src/scripts/2fa.ts index d1b9581e72..62a38ff02a 100644 --- a/packages/client/src/scripts/2fa.ts +++ b/packages/client/src/scripts/2fa.ts @@ -7,15 +7,15 @@ export function byteify(string: string, encoding: 'ascii' | 'base64' | 'hex') { atob( string .replace(/-/g, '+') - .replace(/_/g, '/') + .replace(/_/g, '/'), ), - c => c.charCodeAt(0) + c => c.charCodeAt(0), ); case 'hex': return new Uint8Array( string .match(/.{1,2}/g) - .map(byte => parseInt(byte, 16)) + .map(byte => parseInt(byte, 16)), ); } } @@ -24,7 +24,7 @@ export function hexify(buffer: ArrayBuffer) { return Array.from(new Uint8Array(buffer)) .reduce( (str, byte) => str + byte.toString(16).padStart(2, '0'), - '' + '', ); } |