mirror of https://github.com/status-im/web3.js.git
check if messages is not empty
This commit is contained in:
parent
f3b377ebcb
commit
9ce448d9f5
|
@ -90,9 +90,11 @@ var getLogsAtStart = function(self, callback){
|
|||
callback(err);
|
||||
}
|
||||
|
||||
messages.forEach(function (message) {
|
||||
callback(null, message);
|
||||
});
|
||||
if(utils.isArray(messages)) {
|
||||
messages.forEach(function (message) {
|
||||
callback(null, message);
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue