From 6403b041e8b68faa6fc887d0710820c35353cead Mon Sep 17 00:00:00 2001 From: Tankred Hase Date: Mon, 7 Jul 2014 12:24:06 +0200 Subject: [PATCH] Signatures array must never be empty ... if so crash during development --- src/js/crypto/pgp.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/crypto/pgp.js b/src/js/crypto/pgp.js index 55223bf..2a50b80 100644 --- a/src/js/crypto/pgp.js +++ b/src/js/crypto/pgp.js @@ -432,7 +432,7 @@ define(function(require) { * If everything is in order, returns true */ function checkSignatureValidity(signatures) { - if (!(signatures || []).length) { + if (!signatures.length) { // signatures array is empty (the message was not signed) return; }