navigation

AsyncExceptionWithoutReturn (FL0078)

Introduced in 0.21.6

Cause

Missing "return" keyword inside async blocks when throwing exceptions.

Rationale

When returning values or throwing exception in async blocks, the "return" keyword must be used.

How To Fix

Add "return" keyword to your raise/failwith/failwithf statment.

Rule Settings

{
    "asyncExceptionWithoutReturn": { "enabled": false }
}