Permalink
Browse files

remove repetitive logging

  • Loading branch information...
1 parent 2760fdf commit 828e5f04653b25a855425e37b2640d7e37d36666 @brianshaler brianshaler committed May 27, 2012
Showing with 3 additions and 3 deletions.
  1. +1 −1 controllers/FoursquareController.js
  2. +1 −1 controllers/InstagramController.js
  3. +1 −1 controllers/TwitterController.js
View
2 controllers/FoursquareController.js
@@ -174,7 +174,7 @@ exports.controller = function(req, res, next) {
Settings.findOne({option: self.platform}, function(err, fsq) {
if (err) return finished(err);
- if (!fsq || !fsq.value.access_token) return finished("Couldn't find Foursquare settings. Have you set it up yet?");
+ if (!fsq || !fsq.value.access_token) return finished(); // "Couldn't find Foursquare settings. Have you set it up yet?"
var access_token = fsq.value.access_token;
View
2 controllers/InstagramController.js
@@ -195,7 +195,7 @@ exports.controller = function(req, res, next) {
Settings.findOne({option: self.platform}, function(err, ig) {
if (err) return finished(err);
- if (!ig || !ig.value.access_token) return finished("Couldn't find Instagram settings. Have you set it up yet?");
+ if (!ig || !ig.value.access_token) return finished(); // "Couldn't find Instagram settings. Have you set it up yet?"
var access_token = ig.value.access_token;
View
2 controllers/TwitterController.js
@@ -319,7 +319,7 @@ exports.controller = function(req, res, next) {
Settings.findOne({option: self.platform}, function(err, tw) {
if (err) return finished(err);
- if (!tw) return finished("Couldn't find Twitter settings. Have you set it up yet?");
+ if (!tw) return finished(); // "Couldn't find Twitter settings. Have you set it up yet?"
var access_token_key = tw.value.access_token_key;
var access_token_secret = tw.value.access_token_secret;

0 comments on commit 828e5f0

Please sign in to comment.