Skip to content

Commit 5b38ba0

Browse files
committed
fix infinite loop
1 parent da7329b commit 5b38ba0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

relationship.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ func newRelationshipID(rels []*Relationship) string {
5959
i int
6060
id = idFunc(0)
6161
)
62-
for sort.SearchStrings(ids, id) >= 0 {
62+
for sort.SearchStrings(ids, id) < 0 {
6363
i++
6464
id = idFunc(i)
6565
}

0 commit comments

Comments
 (0)