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

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;