style: omit linting error caused by removing "if"

This commit is contained in:
Nils Knappmeier
2018-09-04 00:16:01 +02:00
committed by Nils Knappmeier
parent d130ed2bc1
commit 29b174468d
+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];
}