Skip to content

Commit

Permalink
Replace 'var' in safeCompare
Browse files Browse the repository at this point in the history
  • Loading branch information
timonson committed Oct 29, 2020
1 parent 2cc28cc commit 832f6cd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions _signature.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ export function convertHexToBase64url(input: string): string {
* CREDIT: https://github.com/Bruce17/safe-compare
*/
function safeCompare(a: string, b: string) {
var strA = String(a);
var strB = String(b);
var lenA = strA.length;
var result = 0;
const strA = String(a);
const lenA = strA.length;
let strB = String(b);
let result = 0;

if (lenA !== strB.length) {
strB = strA;
Expand Down

0 comments on commit 832f6cd

Please sign in to comment.