Skip to content

Commit

Permalink
feat: fix code smells
Browse files Browse the repository at this point in the history
  • Loading branch information
duttarnab committed Jul 22, 2023
1 parent e4f87b0 commit da43379
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions admin-ui/app/utils/RandomHashGenerator.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ export class RandomHashGenerator {
}

static base64URLEncode(a) {
var str = "";
var bytes = new Uint8Array(a);
var len = bytes.byteLength;
let str = "";
let bytes = new Uint8Array(a);
const len = bytes.byteLength;
for (var i = 0; i < len; i++) {
str += String.fromCharCode(bytes[i]);
}
Expand All @@ -29,7 +29,7 @@ export class RandomHashGenerator {
}

static generateRandomString() {
var array = new Uint32Array(56 / 2);
let array = new Uint32Array(56 / 2);
window.crypto.getRandomValues(array);
return Array.from(array, RandomHashGenerator.dec2hex).join('');
}
Expand Down

0 comments on commit da43379

Please sign in to comment.