Skip to content

Commit

Permalink
Merge pull request #56
Browse files Browse the repository at this point in the history
Path3 Fix
  • Loading branch information
mnbjhu authored Nov 17, 2022
2 parents c6ef1a8 + 3448c7c commit 8a1facd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/src/main/kotlin/uk/gibby/redis/paths/Path3.kt
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ class Path3<A : RedisNode<*>, B : RedisRelation<*, A, C>, C : RedisNode<*>, D :
operator fun component5() = third
fun nodes() = Triple(first, second, third)
override fun getMatchString() =
"${first.getMatchString()}-$firstToSecond->${second.getMatchString()}-$secondToThird->${third.getMatchString()}"
"${first.getMatchString()}-${firstToSecond.getMatchString()}->${second.getMatchString()}-${secondToThird.getMatchString()}->${third.getMatchString()}"
.also { first.matched = true; second.matched = true; third.matched = true }

override fun getCreateString(): String =
"(${first.instanceName})-$firstToSecond->(${second.instanceName})-$secondToThird->(${third.instanceName})"
"(${first.getCreateString()})-${firstToSecond.getCreateString()}->(${second.getCreateString()})-${secondToThird.getCreateString()}->(${third.getCreateString()})"
}

0 comments on commit 8a1facd

Please sign in to comment.