feat(Reddit): add Change version code patch

This commit is contained in:
inotia00
2024-06-22 20:51:29 +09:00
parent dcd658fc2b
commit 1e659807cf
2 changed files with 60 additions and 0 deletions

View File

@ -18,6 +18,9 @@ val classLoader: ClassLoader = object {}.javaClass.classLoader
fun PatchOption<String>.valueOrThrow() = value
?: throw PatchException("Invalid patch option: $title.")
fun PatchOption<Int?>.valueOrThrow() = value
?: throw PatchException("Invalid patch option: $title.")
fun PatchOption<String>.lowerCaseOrThrow() = valueOrThrow()
.lowercase()