Small fixes

This commit is contained in:
RainLoop Team 2016-08-09 20:27:04 +03:00
parent 2e96eeb5db
commit 51b9e400d2
3 changed files with 18 additions and 33 deletions

View file

@ -261,7 +261,6 @@ PgpUserStore.prototype.findKeyExternal = function(sEmail, fCallback)
PgpUserStore.prototype.verifyMessage = function(oMessage, fCallback)
{
var
oValid = null,
aResult = [],
aPublicKeys = [],
aSigningKeyIds = [];
@ -281,7 +280,7 @@ PgpUserStore.prototype.verifyMessage = function(oMessage, fCallback)
try
{
aResult = oMessage.verify(aPublicKeys);
oValid = _.find(_.isArray(aResult) ? aResult : [], function(oItem) {
var oValid = _.find(_.isArray(aResult) ? aResult : [], function(oItem) {
return oItem && oItem.valid && oItem.keyid;
});