diff --git a/lib/server/root.js b/lib/server/root.js index 51c6fbe5..46505f8e 100644 --- a/lib/server/root.js +++ b/lib/server/root.js @@ -1,15 +1,11 @@ -(function() { - 'use strict'; +'use strict'; + +var config = require('./config'); +var mellow = require('mellow'); + +module.exports = function(dir) { + var root = config('root') || '/'; - var DIR = './', - config = require(DIR + 'config'), - mellow = require('mellow'); - - module.exports = function(dir) { - var root = config('root') || '/'; - - dir = mellow.pathToWin(dir, root); - - return dir; - }; -})(); + return mellow.pathToWin(dir, root); +}; +