Skip to content

Commit 586e682

Browse files
committed
Use repeat instead of for loop
1 parent 3248274 commit 586e682

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/src/test/kotlin/org/javacs/kt/DiagnosticTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ class DiagnosticTest : SingleFileTestFixture("diagnostic", "Diagnostics.kt") {
4545

4646
@Test fun `only lint once for many edits in a short period`() {
4747
var text = "1"
48-
for (i in 1..10) {
48+
repeat(10) {
4949
val newText = text + "1"
5050

5151
replace(file, 7, 16, text, newText)

0 commit comments

Comments
 (0)