eslint --fix: let to const

This commit is contained in:
Baptiste Grob
2020-02-04 14:22:02 +01:00
parent c0759980cc
commit 94f5888961
10 changed files with 57 additions and 56 deletions

View File

@@ -104,9 +104,9 @@ export class AuthManager extends SFAuthManager {
}
async verifyAccountPassword(password) {
let authParams = await this.getAuthParams();
let keys = await protocolManager.computeEncryptionKeysForUser(password, authParams);
let success = keys.mk === (await this.keys()).mk;
const authParams = await this.getAuthParams();
const keys = await protocolManager.computeEncryptionKeysForUser(password, authParams);
const success = keys.mk === (await this.keys()).mk;
return success;
}
@@ -115,8 +115,8 @@ export class AuthManager extends SFAuthManager {
return false;
}
let latest = protocolManager.version();
let updateAvailable = await this.protocolVersion() !== latest;
const latest = protocolManager.version();
const updateAvailable = await this.protocolVersion() !== latest;
if(updateAvailable !== this.securityUpdateAvailable) {
this.securityUpdateAvailable = updateAvailable;
this.$rootScope.$broadcast("security-update-status-changed");