getOrThrow
runCatching
run
例:
fun foo() = runCatching { doSomething() }.getOrThrow()
クイックフィックス適用後:
fun foo() = run { doSomething() }