ReSharper 2026.1 Help

Code inspection: Redundant empty 'finally' block

This inspection reports a finally block that is completely empty. An empty finally block does not add any behavior, so it only makes the control flow harder to read.

Example

class C { int GetValue() { try { return 1; } finally { } } }
class C { int GetValue() { return 1; } }

Quick-fix

Remove the empty finally block. If the try statement also contains catch blocks, the quick-fix removes only the empty finally.

13 April 2026