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
fun initButtons() = addButtons(
*Snowy.annotatedButtons.mapNotNull {
((try {
try {
it.getConstructor().newInstance()
} catch (e: NoSuchMethodException) {
try {
it.getDeclaredField("INSTANCE").get(null)
} catch (e: NoSuchFieldException) {}
}) as? ButtonImpl)
} as? ButtonImpl
}.filterNot {
(it.info.parent == Category.RISKY) && !riskyCheats
}.plus(Configuration.foundMacros).toTypedArray()