From 5ab5a6d401471275cb2ff6e463d87fe53bc768ef Mon Sep 17 00:00:00 2001 From: Alexander Corn Date: Mon, 11 May 2015 15:56:41 -0400 Subject: [PATCH] Made callback optional for parentalUnlock --- index.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/index.js b/index.js index 06623e7..e6b3475 100644 --- a/index.js +++ b/index.js @@ -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); }