1
0
Fork 0
mirror of https://github.com/pgpainless/pgpainless.git synced 2024-11-05 03:55:58 +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