lint compliance

This commit is contained in:
yflory 2023-06-06 16:09:17 +02:00
parent 8b97742ef6
commit b3a620edc0
3 changed files with 3 additions and 3 deletions

View File

@ -509,7 +509,7 @@ var getDocumentStatus = function (Env, Server, cb, data) {
recovery: parsed.contact && parsed.contact.split(':')[0]
};
} else {
response.totp = err
response.totp = err;
}
}));
}).nThen(function () {

View File

@ -1290,7 +1290,7 @@ define([
var msg = Nacl.util.decodeUTF8(Sortify(clone));
var sig = Nacl.util.decodeBase64(json.proof);
var pub = Nacl.util.decodeBase64(json.blockId)
var pub = Nacl.util.decodeBase64(json.blockId);
return Nacl.sign.detached.verify(msg, sig, pub);
};

View File

@ -118,7 +118,7 @@ define([
LocalStore.login = function (userHash, blockHash, name, cb) {
if (!userHash && !blockHash) { throw new Error('expected a user hash'); }
if (!name) { throw new Error('expected a user name'); }
if (userHash) { LocalStore.setUserHash(userHas); }
if (userHash) { LocalStore.setUserHash(userHash); }
if (blockHash) { LocalStore.setBlockHash(blockHash); }
safeSet(Constants.userNameKey, name);
if (cb) { cb(); }