Find runCatching { }.getOrNull() chains

Proprietary

runCatching { … }.getOrNull() silently swallows every failure and replaces it with null. The shape is fine for fire-and-forget side effects, but for value-producing calls you usually want at least an onFailure { } hook for diagnostics, or .getOrElse { default } so the failure is observable.

org.openrewrite.kotlin.functional.FindRunCatchingGetOrNullDiscardingError$KtRecipe
mod run . --recipe='org.openrewrite.kotlin.functional.FindRunCatchingGetOrNullDiscardingError$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.