mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-27 12:36:14 +01:00
resolve lint warning
This commit is contained in:
parent
7d9cd3e386
commit
03f51074e0
@ -42,20 +42,20 @@ angular
|
||||
var promises = [];
|
||||
|
||||
if ($scope.grouping.id && $scope.folderGrouping) {
|
||||
var getPromise = folderService.get($scope.grouping.id).then(function (folder) {
|
||||
var getFolderPromise = folderService.get($scope.grouping.id).then(function (folder) {
|
||||
return folder.decrypt();
|
||||
}).then(function (model) {
|
||||
decGrouping = model;
|
||||
});
|
||||
promises.push(getPromise);
|
||||
promises.push(getFolderPromise);
|
||||
}
|
||||
else if ($scope.grouping.id && $scope.collectionGrouping) {
|
||||
var getPromise = collectionService.get($scope.grouping.id).then(function (collection) {
|
||||
var getCollectionPromise = collectionService.get($scope.grouping.id).then(function (collection) {
|
||||
return collection.decrypt();
|
||||
}).then(function (model) {
|
||||
decGrouping = model;
|
||||
});
|
||||
promises.push(getPromise);
|
||||
promises.push(getCollectionPromise);
|
||||
}
|
||||
|
||||
var cipherPromise = cipherService.getAllDecryptedForGrouping($scope.grouping.id, $scope.folderGrouping)
|
||||
|
Loading…
Reference in New Issue
Block a user