style: add missing trailing commas (#9387)

This commit is contained in:
Kagami Sascha Rosylight 2022-12-22 16:01:59 +09:00 committed by GitHub
parent 9314ceae36
commit f1fd1d2585
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
79 changed files with 320 additions and 320 deletions

View file

@ -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'),
''
'',
);
}