From cabc070b77ce4c50ddfcfd77c1220b9621794245 Mon Sep 17 00:00:00 2001 From: Andreas Baldeau Date: Sat, 14 Jun 2014 00:51:54 +0200 Subject: [PATCH] Fixed warnings. --- server/config.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/config.js b/server/config.js index 97561bc..9ae0cc7 100644 --- a/server/config.js +++ b/server/config.js @@ -24,8 +24,8 @@ angular.module('ffffng').factory('config', function (fs, deepExtend) { } }; - var configJSONFile = __dirname + "/../config.json"; - var configJSON = undefined; + var configJSONFile = __dirname + '/../config.json'; + var configJSON = {}; if (fs.existsSync(configJSONFile)) { configJSON = JSON.parse(fs.readFileSync(configJSONFile, 'utf8'));