We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a5851f0 commit 11c3a6cCopy full SHA for 11c3a6c
src/main/kotlin/app/revanced/utils/Options.kt
@@ -62,14 +62,17 @@ internal object Options {
62
63
val patchOptions = deserialize(json)
64
65
- patches.forEach { patch ->
+ patches.forEach patch@{ patch ->
66
patchOptions.find { option -> option.patchName == patch.patchName }?.let {
67
it.options.forEach { option ->
68
try {
69
patch.options?.set(option.key, option.value)
70
- ?: logger.warning("${patch.patchName} has no options")
+ ?: run{
71
+ logger.warning("${patch.patchName} has no options")
72
+ return@patch
73
+ }
74
} catch (e: NoSuchOptionException) {
- logger.info(e.message ?: "Unknown error")
75
+ logger.info(e.toString())
76
}
77
78
0 commit comments