style: omit linting error caused by removing "if"

This commit is contained in:
Nils Knappmeier
2018-09-04 00:16:01 +02:00
parent a1d864d4a7
commit 8359722e5d
+3
View File
@@ -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];
}