Remove a few useless parentheses in ButtonImpl.kt

This commit is contained in:
Username404-59 2021-06-08 13:21:23 +02:00
parent 3b6cd7a385
commit 7355635daa
Signed by: Username404-59
GPG Key ID: 7AB361FBB257A5D1
1 changed files with 2 additions and 2 deletions

View File

@ -41,13 +41,13 @@ sealed class ButtonImpl: ColoredElement(0.0, 0.0, 73, 8, opacity = 0.60F) {
@JvmStatic @JvmStatic
fun initButtons() = addButtons( fun initButtons() = addButtons(
*Snowy.annotatedButtons.mapNotNull { *Snowy.annotatedButtons.mapNotNull {
((try { try {
it.getConstructor().newInstance() it.getConstructor().newInstance()
} catch (e: NoSuchMethodException) { } catch (e: NoSuchMethodException) {
try { try {
it.getDeclaredField("INSTANCE").get(null) it.getDeclaredField("INSTANCE").get(null)
} catch (e: NoSuchFieldException) {} } catch (e: NoSuchFieldException) {}
}) as? ButtonImpl) } as? ButtonImpl
}.filterNot { }.filterNot {
(it.info.parent == Category.RISKY) && !riskyCheats (it.info.parent == Category.RISKY) && !riskyCheats
}.plus(Configuration.foundMacros).toTypedArray() }.plus(Configuration.foundMacros).toTypedArray()