Remove a useless .let call in ButtonImpl.kt

This commit is contained in:
Username404 2021-06-29 17:03:45 +02:00
parent b0f882f106
commit 2b49238ee7
Signed by: Username404-59
GPG Key ID: 7AB361FBB257A5D1
1 changed files with 6 additions and 8 deletions

View File

@ -14,17 +14,15 @@ import kotlin.reflect.full.findAnnotation
sealed class ButtonImpl: ColoredElement(0.0, 0.0, 73, 8, opacity = 0.60F) {
internal companion object {
private fun addButtons(vararg buttons: ButtonImpl) {
buttons.groupBy {
buttons.groupBy { impl ->
ClickGui.clickBoxes.find { box ->
it.let { impl ->
with(impl) {
if (info.shouldSave && info.kind == Type.TOGGLE && !info.parent.shouldHide) {
Configuration.enabledFeatures[title]?.let { bool ->
toggled = bool
}
}
}
box.isCategory(impl.info.parent)
box.isCategory(info.parent)
}
}
}.entries.forEach { entry ->