1
0
Fork 0
mirror of https://github.com/pgpainless/pgpainless.git synced 2024-11-16 17:32:06 +01:00

Indexed for-loop

This commit is contained in:
Paul Schaub 2023-06-30 18:04:42 +02:00
parent a4ef1e9b57
commit 23514f1d0e
Signed by: vanitasvitae
GPG key ID: 62BEE9264BF17311

View file

@ -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
} }