From 01dbafed3e02eb53a6b45b91ab2471cfe4d63fd2 Mon Sep 17 00:00:00 2001 From: Aubrey Hewes Date: Tue, 11 Dec 2018 22:29:37 +0100 Subject: [PATCH] fixed superfluous dev support --- src/inc/HandlebarsAST.js | 2 +- src/index.js | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/src/inc/HandlebarsAST.js b/src/inc/HandlebarsAST.js index a3f483a..5014641 100644 --- a/src/inc/HandlebarsAST.js +++ b/src/inc/HandlebarsAST.js @@ -147,7 +147,6 @@ module.exports.getV4Paths = node => { } if (node.path && node.path.original === "filter") { - var d = true; // look for used properties in equation [node.params[1], node.params[node.params.length === 4 ? 3 : 2]].forEach( possiblePropertyNode => { @@ -249,6 +248,7 @@ module.exports.getTemplatePaths = node => { } if (debug) { + // eslint-disable-next-line no-console console.log(uniq(paths)); } return uniq(paths); diff --git a/src/index.js b/src/index.js index 22a5702..eb4f3b8 100755 --- a/src/index.js +++ b/src/index.js @@ -246,8 +246,4 @@ module.exports = function exports(config) { this.setSerializers = serializers => { Object.assign(entitySerializers, serializers); }; - - this.setDebug = function setDebug(enable) { - debug = enable; - }; };