Skip to content

chore: remove unused exceptions in try catch blocks#4440

Merged
Uzlopak merged 1 commit intomainfrom
dont-ignore-exceptions
Aug 21, 2025
Merged

chore: remove unused exceptions in try catch blocks#4440
Uzlopak merged 1 commit intomainfrom
dont-ignore-exceptions

Conversation

@Uzlopak
Copy link
Contributor

@Uzlopak Uzlopak commented Aug 21, 2025

We can savely remove exception in the catch (e) head if we dont process it.

This relates to...

Rationale

Changes

Features

Bug Fixes

Breaking Changes and Deprecations

Status

@KhafraDev
Copy link
Member

Is there a lint rule that could be enabled for this?

@Uzlopak
Copy link
Contributor Author

Uzlopak commented Aug 21, 2025

@KhafraDev

Its sonarjs/no-ignored-exceptions

@Uzlopak Uzlopak merged commit da3325d into main Aug 21, 2025
36 checks passed
@Uzlopak Uzlopak deleted the dont-ignore-exceptions branch August 21, 2025 18:12
@github-actions github-actions bot mentioned this pull request Aug 22, 2025
slagiewka pushed a commit to slagiewka/undici that referenced this pull request Feb 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants