Don't fire callback if not provided

This commit is contained in:
Alexander Corn 2015-06-28 22:16:49 -04:00
parent 1fd12dd4d0
commit dff2727f85

View File

@ -124,6 +124,8 @@ CMarketItem.prototype.updatePrice = function(callback) {
self.highestBuyOrder = parseInt(body.highest_buy_order, 10);
// TODO: The tables?
callback();
if(callback) {
callback();
}
});
};