Make callback optional in removePackage/restorePackage

This commit is contained in:
Alex Corn 2021-07-22 03:30:42 -04:00
parent dc4bb1b554
commit ec1284e961
No known key found for this signature in database
GPG Key ID: E51989A3E7A27FDF

View File

@ -17,6 +17,10 @@ SteamCommunity.prototype.restorePackage = function(packageID, callback) {
},
"json": true
}, (err, res, body) => {
if (!callback) {
return;
}
if (err) {
callback(err);
return;
@ -46,6 +50,10 @@ SteamCommunity.prototype.removePackage = function(packageID, callback) {
},
"json": true
}, (err, res, body) => {
if (!callback) {
return;
}
if (err) {
callback(err);
return;