From 0f3fb760254b525960e7e9a850e3b7641db71db2 Mon Sep 17 00:00:00 2001 From: Alex | Kronox Date: Tue, 9 Apr 2024 17:00:54 +0200 Subject: [PATCH] replace loop --- report-viewer/src/components/fileDisplaying/CodeLine.vue | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/report-viewer/src/components/fileDisplaying/CodeLine.vue b/report-viewer/src/components/fileDisplaying/CodeLine.vue index 4da4080c2..6d2b2ab99 100644 --- a/report-viewer/src/components/fileDisplaying/CodeLine.vue +++ b/report-viewer/src/components/fileDisplaying/CodeLine.vue @@ -117,8 +117,7 @@ function computeTextParts() { lineIndex.value = 0 colIndex.value = 0 - for (let i = 0; i < lineParts.length; i++) { - const matchPart = lineParts[i] + for (const matchPart of lineParts) { const line = getNextLinePartTillColumn(matchPart.end) textParts.push({ line, match: matchPart.match }) }