feat: Make PatchOption#values nullable

There is no difference semantically, but this change allows passing null as a parameter which is simpler than having to use `emptySet()`.
This commit is contained in:
oSumAtrIX
2023-10-22 16:07:01 +02:00
parent 1b52e4b0f9
commit 56ce9ec2f9
2 changed files with 12 additions and 12 deletions

View File

@@ -62,7 +62,7 @@ internal class PatchOptionsTest {
@Test
fun `should allow setting value from values`() =
with(OptionsTestPatch.options["choices"] as PatchOption<String>) {
value = values.last()
value = values!!.last()
assertTrue(value == "valid")
}