fix lint bug
[squeep-html-template-helper] / test / lint-html.js
index 50abb84784ff732d266577718906fa6227dc17ce..1f2b437c302effc58cc4de8a80d8254822bbe0d3 100644 (file)
@@ -22,7 +22,7 @@ function makeHtmlLint(logger, htmlValidate) {
     const report = await htmlValidate.validateString(html);
     report.results.forEach((r) => {
       if (Array.isArray(r)) {
-        result.forEach((m) => {
+        r.forEach((m) => {
           note(violations, m);
         });
       } else {