Skip to content

Commit

Permalink
Adds a return statement
Browse files Browse the repository at this point in the history
  • Loading branch information
johnedquinn committed Jan 25, 2024
1 parent 7dd1063 commit 04f15b1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ internal class ExprCallDynamic(
val actualArgs = args.map { it.eval(record) }.toTypedArray()
candidates.forEach { candidate ->
if (candidate.matches(actualArgs)) {
candidate.eval(actualArgs)
return candidate.eval(actualArgs)
}
}
throw TypeCheckException()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,12 @@ class PartiQLEngineDefaultTest {
;
""".trimIndent(),
expected = stringValue("isOne")
),
SuccessTestCase(
input = """
`null.bool` IS NULL
""".trimIndent(),
expected = boolValue(true)
)
)
}
Expand Down

0 comments on commit 04f15b1

Please sign in to comment.