Skip to content

fix: remove unused catch variable in artifact verification - #1839

Merged
yamcodes merged 1 commit into
devfrom
yamcodes-fix-unused-catch-variable
Sep 11, 2026
Merged

yamcodes merged 1 commit into
devfrom
yamcodes-fix-unused-catch-variable

Conversation

@yamcodes

Copy link
Copy Markdown
Owner

Summary

  • remove the unused error binding from scripts/verify-artifacts.js
  • preserve the existing size-limit failure handling

Fixes the pre-existing Biome autofix/lint failure identified in #1833.

Validation

  • npx --yes @biomejs/[email protected] check scripts/verify-artifacts.js
  • node --check scripts/verify-artifacts.js
  • git diff --check

@changeset-bot

changeset-bot Bot commented Sep 11, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: a97acfa

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ No new issues found.

Reviewed changes

  • Removed the unused error binding from the catch clause in scripts/verify-artifacts.js (line 76). The catch body only emits a literal string via console.error, so the binding was genuinely dead; the optional catch binding catch { is valid ES2019 and preserves the size-limit failure handling (process.exit(1)) unchanged.

The change is a mechanical lint fix with no behavioral surface — verified the catch body does not reference error anywhere.

Pullfrog  | View workflow run | Using DeepSeek Flash (free via Pullfrog for OSS) | 𝕏

@yamcodes
yamcodes merged commit 25b2cca into dev Sep 11, 2026
17 checks passed
@yamcodes
yamcodes deleted the yamcodes-fix-unused-catch-variable branch September 11, 2026 19:38
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