From 9f119eff89bc59b721b44b27d6ea54148e867235 Mon Sep 17 00:00:00 2001 From: coderaiser Date: Mon, 24 Nov 2014 10:15:24 -0500 Subject: [PATCH] refactor(config) {} -> Error --- lib/server/config.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/server/config.js b/lib/server/config.js index d171c573..a28ca06a 100644 --- a/lib/server/config.js +++ b/lib/server/config.js @@ -58,9 +58,7 @@ if (data) fs.writeFile(ConfigHome, data, callback); else - callback({ - message: 'Error: config is empty!' - }); + callback(Error('Config is empty!')); } function socket(sock) {