Commit cc9df755 authored by Björn Bartels's avatar Björn Bartels

undo scrutinizer fix

parent 536e69d7
......@@ -18,10 +18,10 @@ module.exports = function(dir) {
if (ext === '.json' || ext === '.js') {
delete require.cache[require.resolve(dataFiles[i])];
let data = require(dataFiles[i])
data = require(dataFiles[i])
}
else if (ext === '.yml') {
let data = yaml.safeLoad(fs.readFileSync(dataFiles[i]));
data = yaml.safeLoad(fs.readFileSync(dataFiles[i]));
}
this.data[name] = data;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment