mirror of
https://github.com/ReVanced/revanced-patcher.git
synced 2026-01-24 11:41:02 +00:00
Merge remote-tracking branch 'origin/main' into main
This commit is contained in:
@@ -168,7 +168,7 @@ sealed class PatchOption<T>(
|
||||
}
|
||||
) {
|
||||
init {
|
||||
if (default !in options) {
|
||||
if (default != null && default !in options) {
|
||||
throw IllegalStateException("Default option must be an allowed option")
|
||||
}
|
||||
}
|
||||
@@ -237,4 +237,4 @@ sealed class PatchOption<T>(
|
||||
validator(it?.toFile())
|
||||
}
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user