mirror of
https://github.com/ReVanced/revanced-patcher.git
synced 2026-01-24 03:31:04 +00:00
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:
@@ -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")
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user