Fixed warnings.

This commit is contained in:
Andreas Baldeau 2014-06-14 00:51:54 +02:00
parent 9b356036d4
commit cabc070b77

View file

@ -24,8 +24,8 @@ angular.module('ffffng').factory('config', function (fs, deepExtend) {
} }
}; };
var configJSONFile = __dirname + "/../config.json"; var configJSONFile = __dirname + '/../config.json';
var configJSON = undefined; var configJSON = {};
if (fs.existsSync(configJSONFile)) { if (fs.existsSync(configJSONFile)) {
configJSON = JSON.parse(fs.readFileSync(configJSONFile, 'utf8')); configJSON = JSON.parse(fs.readFileSync(configJSONFile, 'utf8'));