冗長な ?: return null を報告します。
?: return null
例:
fun foo(): Int? { ... } fun test() : Int? { return foo() ?: return null }
クイックフィックス適用後:
fun foo(): Int? { ... } fun test() : Int? { return foo() }