使用“使用 lambda 从函数调用中移除不必要的括号”快速修复来清理代码。
示例:
fun foo() { listOf(1).forEach() { } }
在应用快速修复后:
fun foo() { listOf(1).forEach { } }