> ## Documentation Index
> Fetch the complete documentation index at: https://loadwise.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# return-in-finally

> Returning from finally can replace a pending return value or suppress a thrown error.

## What it flags

A return in `finally` can replace an earlier return value or suppress a thrown error.

## How to review or fix

Keep cleanup in `finally` and return from `try`, `catch`, or after the statement.

## Configuration

Set the rule to `"off"` in `loadwise.config.json` to drop its findings:

```json theme={null}
{
  "rules": { "return-in-finally": "off" }
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.