From 7b29c5a9d859a49408943435367ec07f27388b2d Mon Sep 17 00:00:00 2001 From: coderaiser Date: Mon, 23 Jun 2014 05:51:03 -0400 Subject: [PATCH] refactor(mellow) getRoot: put win on top --- lib/server/mellow.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/server/mellow.js b/lib/server/mellow.js index 90caf50f..aa52d5d6 100644 --- a/lib/server/mellow.js +++ b/lib/server/mellow.js @@ -6,6 +6,8 @@ isWin = process.platform === 'win32', Util = require(DIR + 'util'), + + win = require(DIR_SERVER + 'win'), commander = require(DIR_SERVER + 'commander'); exports.read = read; @@ -19,8 +21,6 @@ } function getRoot(callback) { - var win = require(DIR_SERVER + 'win'); - win.getVolumes(function(error, volumes) { var data = { path : '/',