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

This commit is contained in:
Sculas
2022-09-08 11:29:14 +02:00
3 changed files with 17 additions and 3 deletions

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