1
0
Fork 0
mirror of https://github.com/pgpainless/pgpainless.git synced 2024-12-25 04:17:59 +01:00

Fix off by one

This commit is contained in:
Heiko Schaefer 2023-06-28 23:46:35 +02:00 committed by Paul Schaub
parent 6c841fda7c
commit 008f1b22ef
Signed by: vanitasvitae
GPG key ID: 62BEE9264BF17311

View file

@ -100,7 +100,7 @@ class Path(
}
var cyclic = root.fingerprint == certification.target.fingerprint
for (i in 0..edges.size) {
for (i in 0 until edges.size) {
val edge = edges[i]
if (cyclic) {
break