mirror of
https://github.com/moparisthebest/mail
synced 2024-11-23 09:22:23 -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,
|
var self = this,
|
||||||
after, already, pubkeys = [];
|
after, already, pubkeys = [];
|
||||||
|
|
||||||
|
// return empty array if key ids are emtpy
|
||||||
|
if (ids.length < 1) {
|
||||||
|
callback(null, pubkeys);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
after = _.after(ids.length, function() {
|
after = _.after(ids.length, function() {
|
||||||
callback(null, pubkeys);
|
callback(null, pubkeys);
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user