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);
|
callback(err);
|
||||||
}
|
}
|
||||||
|
|
||||||
messages.forEach(function (message) {
|
if(utils.isArray(messages)) {
|
||||||
callback(null, message);
|
messages.forEach(function (message) {
|
||||||
});
|
callback(null, message);
|
||||||
|
});
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue