We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8d8db20 commit 473239bCopy full SHA for 473239b
htmlhint-server/src/server.ts
@@ -1832,15 +1832,6 @@ function createAttrNoDuplicationFix(
1832
}
1833
1834
const text = document.getText();
1835
- const lines = text.split("\n");
1836
- const diagnosticLine = diagnostic.data.line - 1;
1837
- const line = lines[diagnosticLine];
1838
-
1839
- if (!line) {
1840
- trace(`[DEBUG] createAttrNoDuplicationFix: Line not found`);
1841
- return null;
1842
- }
1843
1844
// Find the tag containing the duplicate attributes
1845
// Look for the opening tag that contains the diagnostic position
1846
const diagnosticOffset = document.offsetAt(diagnostic.range.start);
0 commit comments