Skip to content

fix: remove unused native events catch binding - #8362

Open
OskarEichler wants to merge 1 commit into
wix:masterfrom
OskarEichler:codex/remove-unused-native-events-catch
Open

fix: remove unused native events catch binding#8362
OskarEichler wants to merge 1 commit into
wix:masterfrom
OskarEichler:codex/remove-unused-native-events-catch

Conversation

@OskarEichler

Copy link
Copy Markdown

What changed

  • omit the unused catch binding when NativeEventEmitter construction falls back to the no-op emitter
  • restore a clean source-only ESLint run without changing fallback behavior

Why

NativeEventsReceiver never reads the caught value, so naming it triggers the repository's @typescript-eslint/no-unused-vars rule. JavaScript supports an optional catch binding for this exact case.

Verification

  • yarn eslint --ext .js,.jsx,.ts,.tsx ./src --quiet
  • yarn test-js — 38 suites / 395 tests passed; 11 suites / 59 tests skipped
  • git diff --check

Breaking changes

None.

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.

1 participant