Permalink
Browse files

Merge pull request #2 from node-migrator-bot/clean

Hi! I fixed some calls to "sys" for you!
  • Loading branch information...
2 parents 6d33525 + 59295a4 commit 7163e058ab3817d0c789805ce1d617cf0d91ab74 Anatoliy Chakkaev committed Jun 25, 2012
Showing with 5 additions and 5 deletions.
  1. +4 −4 app/controllers/twitter_connect_controller.js
  2. +1 −1 index.js
@@ -1,4 +1,4 @@
-var sys = require('sys');
+var util = require('util');
action('connect', function () {
req.session.beforeTwitterAuth = req.headers.referer;
@@ -7,7 +7,7 @@ action('connect', function () {
function gotToken (error, oauthToken, oauthTokenSecret, results) {
if (error) {
- flash(error, "Error getting OAuth request token : " + sys.inspect(error));
+ flash(error, "Error getting OAuth request token : " + util.inspect(error));
redirectBack();
} else {
req.session.twitter = {
@@ -29,7 +29,7 @@ action('callback', function () {
function twitterCallback (error, oauthAccessToken, oauthAccessTokenSecret, results) {
if (error) {
- send("Error getting OAuth access token : " + sys.inspect(error), 500);
+ send("Error getting OAuth access token : " + util.inspect(error), 500);
return;
}
consumer().get(
@@ -40,7 +40,7 @@ action('callback', function () {
function gotData (error, data, response) {
if (error) {
- flash(error, "Error getting twitter screen name : " + sys.inspect(error));
+ flash(error, "Error getting twitter screen name : " + util.inspect(error));
redirectBack();
console.log('gotData:', error);
} else {
View
@@ -1,5 +1,5 @@
var oauth = require('oauth');
-var sys = require('sys');
+var util = require('util');
var _twitterConsumerKey;
var _twitterConsumerSecret;

0 comments on commit 7163e05

Please sign in to comment.