Permalink
Browse files

Fixed spacing inconsistencies

  • Loading branch information...
1 parent 9680067 commit 206ee255746ec48dda1d89b03aae01d341049be2 @jarradseers committed Sep 15, 2012
@@ -1,8 +1,7 @@
-
exports.isAuthenticated = function(req, res, next) {
- if (true) {
- next();
- } else {
- res.send('Not authenticated');
- }
-};
+ if (true) {
+ next();
+ } else {
+ res.send('Not authenticated');
+ }
+};
@@ -16,4 +16,4 @@ module.exports = function(app) {
};
return User;
-}
+}
@@ -4,16 +4,16 @@ module.exports = function(app) {
* Load Controllers.
*/
- var site = app.controllers.site;
- var user = app.controllers.user;
+ var site = app.controllers.site;
+ var user = app.controllers.user;
/**
* Route to controllers.
*/
- app.get('/',
- user.isAuthenticated,
- site.index
- );
+ app.get('/',
+ user.isAuthenticated,
+ site.index
+ );
};
@@ -1,4 +1,3 @@
-
exports.index = function(req, res, next) {
res.send('authenticated');
};
@@ -1,8 +1,7 @@
-
exports.isAuthenticated = function(req, res, next) {
- if (true) {
- next();
- } else {
- res.send('Not authenticated');
- }
-};
+ if (true) {
+ next();
+ } else {
+ res.send('Not authenticated');
+ }
+};
@@ -4,16 +4,16 @@ module.exports = function(app) {
* Load Controllers.
*/
- var site = app.controllers.site;
- var user = app.controllers.user;
+ var site = app.controllers.site;
+ var user = app.controllers.user;
/**
* Route to controllers.
*/
- app.get('/',
- user.isAuthenticated,
- site.index
- );
+ app.get('/',
+ user.isAuthenticated,
+ site.index
+ );
};
@@ -1,4 +1,3 @@
-
exports.index = function(req, res, next) {
- res.send('authenticated');
+ res.send('authenticated');
};
@@ -1,8 +1,7 @@
-
exports.isAuthenticated = function(req, res, next) {
- if (true) {
- next();
- } else {
- res.send('Not authenticated');
- }
-};
+ if (true) {
+ next();
+ } else {
+ res.send('Not authenticated');
+ }
+};

0 comments on commit 206ee25

Please sign in to comment.