Merge remote-tracking branch 'origin/main' into main

This commit is contained in:
Sculas 2022-09-08 11:29:14 +02:00
commit 002f84da1a
No known key found for this signature in database
GPG Key ID: 1530BFF96D1EEB89
3 changed files with 17 additions and 3 deletions

View File

@ -1,3 +1,17 @@
## [4.1.3](https://github.com/revanced/revanced-patcher/compare/v4.1.2...v4.1.3) (2022-09-07)
### Bug Fixes
* only run list option check if not null ([4055939](https://github.com/revanced/revanced-patcher/commit/4055939c089e3c396c308c980215d93a1dea5954))
## [4.1.2](https://github.com/revanced/revanced-patcher/compare/v4.1.1...v4.1.2) (2022-09-07)
### Bug Fixes
* invalid types for example options ([79f91e0](https://github.com/revanced/revanced-patcher/commit/79f91e0e5a6d99828f30aae55339ce0d897394c7))
## [4.1.1](https://github.com/revanced/revanced-patcher/compare/v4.1.0...v4.1.1) (2022-09-07)

View File

@ -1,2 +1,2 @@
kotlin.code.style = official
version = 4.1.1
version = 4.1.3

View File

@ -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())
}
)
}
}