Skip to content

Commit b4a5286

Browse files
committed
Use ++ instead of += 1
1 parent 9f3519d commit b4a5286

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

kotlinx-coroutines-core/jvm/src/debug/internal/DebugProbesImpl.kt

+2-2
Original file line numberDiff line numberDiff line change
@@ -492,7 +492,7 @@ internal object DebugProbesImpl {
492492
// first index past the end of the span of internal methods that starts from `i`
493493
var j = i + 1
494494
while (j < size && stackTrace[j].isInternalMethod) {
495-
j += 1
495+
++j
496496
}
497497
// index of the last non-synthetic internal methods in this span, or `i` if there are no such methods
498498
var k = j - 1
@@ -508,7 +508,7 @@ internal object DebugProbesImpl {
508508
i = j
509509
} else {
510510
result += stackTrace[i]
511-
i += 1
511+
++i
512512
}
513513
}
514514
return result

0 commit comments

Comments
 (0)