Skip to content

Commit

Permalink
fix newRelationshipID
Browse files Browse the repository at this point in the history
  • Loading branch information
qmuntal committed Oct 20, 2020
1 parent c770491 commit 16bff4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion relationship.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ func newRelationshipID(rels []*Relationship) string {
i int
id = idFunc(0)
)
for sort.SearchStrings(ids, id) < 0 {
for sort.SearchStrings(ids, id) != len(ids) {
i++
id = idFunc(i)
}
Expand Down

0 comments on commit 16bff4c

Please sign in to comment.