Skip to content

Commit 473239b

Browse files
coliffCopilot
andauthored
Update htmlhint-server/src/server.ts
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 8d8db20 commit 473239b

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

htmlhint-server/src/server.ts

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1832,15 +1832,6 @@ function createAttrNoDuplicationFix(
18321832
}
18331833

18341834
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-
18441835
// Find the tag containing the duplicate attributes
18451836
// Look for the opening tag that contains the diagnostic position
18461837
const diagnosticOffset = document.offsetAt(diagnostic.range.start);

0 commit comments

Comments
 (0)