Fixed typo

This commit is contained in:
Dylan Monroe 2019-09-25 16:04:25 -04:00
parent 645d904954
commit 4405fdb5fe
No known key found for this signature in database
GPG Key ID: 605BCD1FE75AC0A1
1 changed files with 1 additions and 1 deletions

View File

@ -90,7 +90,7 @@ Otp.prototype.hmac = function(data, callback) {
});
};
Otp.HmacToDigits = function (hmac, length) {
Otp.HmacToDigits = function(hmac, length) {
let code = hmac.toString();
code = Otp.leftPad(code.substr(code.length - length), length);
return code;