1
0
mirror of https://github.com/moparisthebest/mail synced 2024-11-26 19:02:20 -05:00

Signatures array must never be empty ... if so crash during development

This commit is contained in:
Tankred Hase 2014-07-07 12:24:06 +02:00
parent 1b8e662769
commit 6403b041e8

View File

@ -432,7 +432,7 @@ define(function(require) {
* If everything is in order, returns true * If everything is in order, returns true
*/ */
function checkSignatureValidity(signatures) { function checkSignatureValidity(signatures) {
if (!(signatures || []).length) { if (!signatures.length) {
// signatures array is empty (the message was not signed) // signatures array is empty (the message was not signed)
return; return;
} }