Skip to content

Commit

Permalink
replace loop
Browse files Browse the repository at this point in the history
  • Loading branch information
Kr0nox committed Apr 9, 2024
1 parent fd53dab commit 0f3fb76
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions report-viewer/src/components/fileDisplaying/CodeLine.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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 })
}
Expand Down

0 comments on commit 0f3fb76

Please sign in to comment.