From 1845af87fca76fca26e5ff98f3ee6ea14988a207 Mon Sep 17 00:00:00 2001 From: arturmakaranka Date: Tue, 10 May 2022 10:32:24 +0400 Subject: [PATCH] fix: fix linting errors --- lib/handlebars/compiler/javascript-compiler.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/handlebars/compiler/javascript-compiler.js b/lib/handlebars/compiler/javascript-compiler.js index e8184cb9..7762412e 100644 --- a/lib/handlebars/compiler/javascript-compiler.js +++ b/lib/handlebars/compiler/javascript-compiler.js @@ -537,7 +537,9 @@ JavaScriptCompiler.prototype = { resolvePath: function(type, parts, i, falsy, strict) { if (this.options.strict || this.options.assumeObjects) { - this.push(strictLookup(this.options.strict && strict, this, parts, i, type)); + this.push( + strictLookup(this.options.strict && strict, this, parts, i, type) + ); return; } @@ -1263,7 +1265,7 @@ JavaScriptCompiler.isValidJavaScriptVariableName = function(name) { function strictLookup(requireTerminal, compiler, parts, i, type) { let stack = compiler.popStack(), - len = parts.length; + len = parts.length; if (requireTerminal) { len--; }