Skip to content

Files

Latest commit

 

History

History
13 lines (7 loc) · 514 Bytes

no-unsafe-finally.md

File metadata and controls

13 lines (7 loc) · 514 Bytes

Pattern: Unsafe finally block

Issue: -

Description

Disallows control flow statements, such as return, continue, break and throws in finally blocks.

Rationale: When used inside finally blocks, control flow statements, such as return, continue, break and throws override any other control flow statements in the same try/catch scope. This is confusing and unexpected behavior.

Further Reading