Commit 536e69d7 authored by Björn Bartels's avatar Björn Bartels 👩🏻
Browse files

fix some 'scrutinizer' issues

parent 0dfdb8de
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -82,6 +82,7 @@ function buildDocs() {
                
                // build the doc page...
                var pageSource = this.renderdocs(data);
                /** global: Buffer */
                file.contents = new Buffer(pageSource);
    
                // Write new file to disk if necessary
+2 −2
Original line number Diff line number Diff line
@@ -18,10 +18,10 @@ module.exports = function(dir) {
	
	    if (ext === '.json' || ext === '.js') {
	        delete require.cache[require.resolve(dataFiles[i])];
	        data = require(dataFiles[i])
	        let data = require(dataFiles[i])
	    }
	    else if (ext === '.yml') {
	        data = yaml.safeLoad(fs.readFileSync(dataFiles[i]));
	        let data = yaml.safeLoad(fs.readFileSync(dataFiles[i]));
	    }
	
	    this.data[name] = data;
+1 −1
Original line number Diff line number Diff line
@@ -23,7 +23,7 @@ function loadHandlebarsHelpers (dir) {
	        this.handlebars.registerHelper(name, helper);
	    }
	    catch (e) {
	        console.warn('Error when loading ' + name + '.js as a Handlebars helper.', helper, e);
	        console.warn('Error when loading ' + name + '.js as a Handlebars helper.', e);
	    }
    }
}
+1 −1
Original line number Diff line number Diff line
@@ -57,7 +57,7 @@ function renderPage ( page_src, page_target, data, markdown ) {
        pageSource = String(pageSource).replace('{__MDBODY__}', markdown);
    }
    
    
    /** global: Buffer */
    var filecontents = new Buffer(pageSource);