rspec/rules/S2737/description.adoc
Fred Tingaud ad4a486e52
Modify Rule S2737: LaYC catch rethrow
Co-authored-by: Amélie Renard <44666826+amelie-renard-sonarsource@users.noreply.github.com>
Co-authored-by: Dorian Burihabwa <75226315+dorian-burihabwa-sonarsource@users.noreply.github.com>
2023-06-22 14:04:34 +02:00

7 lines
278 B
Plaintext

A `catch` clause that only rethrows the caught exception has the same effect as omitting the `catch` altogether and letting it bubble up automatically.
include::{example}[]
Such clauses should either be removed or populated with the appropriate logic.
include::{compliant}[]