diff --git a/.gitignore b/.gitignore index 4a067081..ba64a738 100644 --- a/.gitignore +++ b/.gitignore @@ -1,7 +1,6 @@ # Logs logs *.log -debug/ # Runtime data pids diff --git a/lib/slack.js b/lib/slack.js index cdc85a66..659ba5a0 100644 --- a/lib/slack.js +++ b/lib/slack.js @@ -90,7 +90,6 @@ function Slack(opts, debug) { var res = yield request(load); var $ = cheerio.load(res[0].body); if (this.debug) write($('title').text(), $.html()); - if (this.debug) fs.writeFileSync('debug/login_page_response.html', res); opts.formData = { signin: $('#signin_form input[name="signin"]').attr('value'), redir: $('#signin_form input[name="redir"]').attr('value'), @@ -118,7 +117,6 @@ function Slack(opts, debug) { formData: opts.formData }; var res = yield request(load); - if (this.debug) fs.writeFileSync('debug/logged_in_page_response.html', res); if(res[0].body.indexOf("Sorry, you entered an incorrect email address or password.") != -1){ throw new Error('Login error: incorrect username / password'); } @@ -177,7 +175,6 @@ function Slack(opts, debug) { jar: opts.jar, followAllRedirects: true }, function(err, res, body) { - if (this.debug) fs.writeFileSync('debug/emoji_upload_response.html', body); if (err || !body) return reject(err); resolve(body); });