Use readln() instead of readLine()!!

Proprietary

Kotlin 1.6 introduced readln() to replace the common readLine()!! idiom — the new spelling makes the EOF-throws contract explicit and drops the not-null assertion.

org.openrewrite.kotlin.migrate.UseReadln$KtRecipe
mod run . --recipe='org.openrewrite.kotlin.migrate.UseReadln$KtRecipe'

Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.