1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-19 01:33:33 +00:00

lint fixes

This commit is contained in:
Kyle Spearrin
2017-10-25 16:01:04 -04:00
parent cae8beaa8f
commit a57110b935
12 changed files with 24 additions and 10 deletions

View File

@@ -142,10 +142,11 @@
});
editModel.result.then(function (returnVal) {
var rootCipher = findRootCipher(cipher) || { meta: {} };
var rootCipher = findRootCipher(cipher) || { meta: {} },
index;
if (returnVal.action === 'edit') {
var index = $scope.ciphers.indexOf(cipher);
index = $scope.ciphers.indexOf(cipher);
if (index > -1) {
returnVal.data.collectionIds = $scope.ciphers[index].collectionIds;
$scope.ciphers[index] = returnVal.data;
@@ -163,7 +164,7 @@
cipher.favorite = rootCipher.favorite = returnVal.data.favorite;
}
else if (returnVal.action === 'delete') {
var index = $scope.ciphers.indexOf(cipher);
index = $scope.ciphers.indexOf(cipher);
if (index > -1) {
$scope.ciphers.splice(index, 1);
}