1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-09-14 02:08:50 +02:00

resolve lint errors

This commit is contained in:
Kyle Spearrin 2017-03-21 23:07:38 -04:00
parent 715b91ab96
commit dde20f4451
4 changed files with 7 additions and 7 deletions

View File

@ -13,8 +13,8 @@
});
apiService.organizationUsers.get({ orgId: $state.params.orgId, id: id }, function (user) {
var subvaults = {};
if (user && user.Subvaults) {
var subvaults = {};
for (var i = 0; i < user.Subvaults.Data.length; i++) {
subvaults[user.Subvaults.Data[i].SubvaultId] = {
subvaultId: user.Subvaults.Data[i].SubvaultId,

View File

@ -87,16 +87,16 @@ angular
profile.Organizations = [];
}
var org = {
var o = {
id: org.Id,
name: org.Name,
key: org.Key,
status: org.Status
};
profile.organizations.push(org);
profile.organizations.push(o);
_userProfile = profile;
cryptoService.addOrgKey(org);
cryptoService.addOrgKey(o);
}
};

View File

@ -133,7 +133,7 @@ angular
}
return property;
}
};
_service.encryptLogins = function (unencryptedLogins, key) {
if (!unencryptedLogins) throw "unencryptedLogins is undefined or null";

View File

@ -18,7 +18,7 @@ angular
try {
var privateKeyBytes = _service.decrypt(privateKeyCt, key, 'raw');
$sessionStorage.privateKey = forge.util.encode64(privateKeyBytes);
_privateKey = forge.pki.privateKeyFromAsn1(forge.asn1.fromDer(privateKeyBytes));;
_privateKey = forge.pki.privateKeyFromAsn1(forge.asn1.fromDer(privateKeyBytes));
}
catch (e) {
console.log('Cannot set private key. Decryption failed.');
@ -171,7 +171,7 @@ angular
}
return orgKeys[orgId];
}
};
_service.clearKey = function () {
_key = _b64Key = null;