mirror of
https://github.com/DoctorMcKay/node-steamcommunity.git
synced 2024-12-29 08:00:12 +08:00
Don't fire callback if not provided
This commit is contained in:
parent
1fd12dd4d0
commit
dff2727f85
@ -124,6 +124,8 @@ CMarketItem.prototype.updatePrice = function(callback) {
|
||||
self.highestBuyOrder = parseInt(body.highest_buy_order, 10);
|
||||
|
||||
// TODO: The tables?
|
||||
callback();
|
||||
if(callback) {
|
||||
callback();
|
||||
}
|
||||
});
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user