js: fix confusion about loop in last commit

--

* The aim is to iterate through the results of the first request
 (all keys), and then add the propert 'hasSecret' to those that
  are in the second request (secret Keysring)  as well. I messed
  this up in a recent change, and it escaped testing.
This commit is contained in:
Maximilian Krambach 2018-07-31 17:35:52 +02:00
parent 9d247b7fd5
commit 6313a2de9e

View File

@ -79,9 +79,8 @@ export class GPGME_Keyring {
};
}
secondrequest().then(function(answer) {
for (let i=0; i < answer.keys.length; i++){
for (let i=0; i < result.keys.length; i++){
if (prepare_sync === true){
result.keys[i].hasSecret = undefined;
if (answer && answer.keys) {
for (let j=0;
j < answer.keys.length; j++ ){