mirror of
https://github.com/inotia00/revanced-patches.git
synced 2025-06-12 21:27:43 +02:00
feat(Reddit): add Change version code
patch
This commit is contained in:
@ -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()
|
||||
|
||||
|
Reference in New Issue
Block a user