Skip to content

Commit

Permalink
fix: fix linting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
arturmakaranka committed May 10, 2022
1 parent 00054c8 commit 1845af8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/handlebars/compiler/javascript-compiler.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down Expand Up @@ -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--;
}
Expand Down

0 comments on commit 1845af8

Please sign in to comment.