Skip to content

Commit

Permalink
style: omit linting error caused by removing "if"
Browse files Browse the repository at this point in the history
  • Loading branch information
nknapp committed Sep 3, 2018
1 parent a1d864d commit 8359722
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/handlebars/compiler/compiler.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,9 @@ Compiler.prototype = {
'lookup': true
};
if (knownHelpers) {
// the next line should use "Object.keys", but the code has been like this a long time and changing it, might
// cause backwards-compatibility issues... It's an old library...
// eslint-disable-next-line guard-for-in
for (let name in knownHelpers) {
this.options.knownHelpers[name] = knownHelpers[name];
}
Expand Down

0 comments on commit 8359722

Please sign in to comment.