Inspectopedia
 
2024.3

Redundant 'runCatching' call

Info
New
Last modified: 03 December 2024

Reports runCatching calls that are immediately followed by getOrThrow. Such calls can be replaced with just run.

Example:

After the quick-fix is applied: