Skip to content

Commit da43379

Browse files
committed
feat: fix code smells
1 parent e4f87b0 commit da43379

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

admin-ui/app/utils/RandomHashGenerator.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ export class RandomHashGenerator {
1010
}
1111

1212
static base64URLEncode(a) {
13-
var str = "";
14-
var bytes = new Uint8Array(a);
15-
var len = bytes.byteLength;
13+
let str = "";
14+
let bytes = new Uint8Array(a);
15+
const len = bytes.byteLength;
1616
for (var i = 0; i < len; i++) {
1717
str += String.fromCharCode(bytes[i]);
1818
}
@@ -29,7 +29,7 @@ export class RandomHashGenerator {
2929
}
3030

3131
static generateRandomString() {
32-
var array = new Uint32Array(56 / 2);
32+
let array = new Uint32Array(56 / 2);
3333
window.crypto.getRandomValues(array);
3434
return Array.from(array, RandomHashGenerator.dec2hex).join('');
3535
}

0 commit comments

Comments
 (0)