Ignored Result (ARCH8152)
هذا المحتوى غير متوفر بلغتك بعد.
Key kotlin.logging.ignored-result · Severity error · Category logging
Flags runCatching { } whose Result is discarded, and Result-returning calls used as bare statements - the failure is captured and then thrown away.
Incorrect
Section titled “Incorrect”runCatching { save() }Correct
Section titled “Correct”runCatching { save() }.onFailure { log.error("save failed", it) }Handle the Result: onFailure / getOrThrow / getOrElse.