mirror of
https://github.com/pgpainless/pgpainless.git
synced 2024-12-25 04:17:59 +01:00
Indexed for-loop
This commit is contained in:
parent
008f1b22ef
commit
8d68a29836
1 changed files with 1 additions and 2 deletions
|
@ -100,8 +100,7 @@ class Path(
|
||||||
}
|
}
|
||||||
|
|
||||||
var cyclic = root.fingerprint == certification.target.fingerprint
|
var cyclic = root.fingerprint == certification.target.fingerprint
|
||||||
for (i in 0 until edges.size) {
|
for ((i, edge) in edges.withIndex()) {
|
||||||
val edge = edges[i]
|
|
||||||
if (cyclic) {
|
if (cyclic) {
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue