mirror of
https://github.com/moparisthebest/mail
synced 2024-11-23 01:12:19 -05:00
handle error in case key ids are emtpy
This commit is contained in:
parent
e050c9854b
commit
c2cf878632
@ -21,6 +21,12 @@ define(['underscore', 'js/dao/lawnchair-dao'], function(_, jsonDao) {
|
||||
var self = this,
|
||||
after, already, pubkeys = [];
|
||||
|
||||
// return empty array if key ids are emtpy
|
||||
if (ids.length < 1) {
|
||||
callback(null, pubkeys);
|
||||
return;
|
||||
}
|
||||
|
||||
after = _.after(ids.length, function() {
|
||||
callback(null, pubkeys);
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user