Made callback optional for parentalUnlock

This commit is contained in:
Alexander Corn 2015-05-11 15:56:41 -04:00
parent a88a39c62c
commit 5ab5a6d401

View File

@ -161,6 +161,10 @@ SteamCommunity.prototype.parentalUnlock = function(pin, callback) {
"pin": pin
}
}, function(err, response, body) {
if(!callback) {
return;
}
if(err || response.statusCode != 200) {
return callback(err.message || "HTTP error " + response.statusCode);
}