Permalink
Browse files

follow indentation conventions

  • Loading branch information...
1 parent d35a4ea commit 288b42316f69a02c82c6bf56cd34e21215162557 @shapeshed committed Mar 7, 2012
Showing with 9 additions and 9 deletions.
  1. +9 −9 lib/connect-force-domain.js
@@ -4,14 +4,14 @@
* Inspired by rack-force_domain
*
*/
-
module.exports = function(domain){
- domain = domain || false;
- return function(req, res, next){
- if (domain && (req.headers.host != domain)){
- res.writeHead(301, {"Location": 'http://' + domain + req.url});
- res.end();
- }
- next();
- }
+ domain = domain || false;
+ return function(req, res, next){
+ if (domain && (req.headers.host != domain)){
+ res.writeHead(301, {"Location": 'http://' + domain + req.url});
+ res.end();
+ } else {
+ next();
+ }
+ }
};

0 comments on commit 288b423

Please sign in to comment.