Skip to content

refactor(linter): remove a branch#12032

Merged
graphite-app[bot] merged 1 commit intomainfrom
07-02-refactor_linter_remove_a_branch
Jul 2, 2025
Merged

refactor(linter): remove a branch#12032
graphite-app[bot] merged 1 commit intomainfrom
07-02-refactor_linter_remove_a_branch

Conversation

@overlookmotel
Copy link
Member

@overlookmotel overlookmotel commented Jul 2, 2025

Follow-on after #11767. Small optimizations.

  • PrivateFieldExpression cannot have a static property name, so no need to test for it.

  • Replace branch which can never be taken with unwrap(). unwrap() should cause compiler to backtrack and prove that this branch cannot be taken, and remove the branch.

@github-actions github-actions bot added A-linter Area - Linter C-cleanup Category - technical debt or refactoring. Solution not expected to change behavior labels Jul 2, 2025
Copy link
Member Author


How to use the Graphite Merge Queue

Add either label to this PR to merge it via the merge queue:

  • 0-merge - adds this PR to the back of the merge queue
  • hotfix - for urgent hot fixes, skip the queue and merge this PR next

You must have a Graphite account in order to use the merge queue. Sign up using this link.

An organization admin has enabled the Graphite Merge Queue in this repository.

Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue.

This stack of pull requests is managed by Graphite. Learn more about stacking.

@overlookmotel overlookmotel marked this pull request as ready for review July 2, 2025 10:47
@overlookmotel overlookmotel requested a review from camc314 as a code owner July 2, 2025 10:47
@codspeed-hq
Copy link

codspeed-hq bot commented Jul 2, 2025

CodSpeed Instrumentation Performance Report

Merging #12032 will degrade performances by 3.89%

Comparing 07-02-refactor_linter_remove_a_branch (0c7f9e8) with main (eb1c596)

Summary

❌ 1 regressions
✅ 37 untouched benchmarks

⚠️ Please fix the performance issues or acknowledge them on CodSpeed.

Benchmarks breakdown

Benchmark BASE HEAD Change
mangler[RadixUIAdoptionSection.jsx] 13.8 µs 14.4 µs -3.89%

@camc314 camc314 added the 0-merge Merge with Graphite Merge Queue label Jul 2, 2025
Copy link
Contributor

camc314 commented Jul 2, 2025

Merge activity

Follow-on after #11767. Small optimizations.

* `PrivateFieldExpression` cannot have a static property name, so no need to test for it.

* Replace branch which can never be taken with `unwrap()`. `unwrap()` should cause compiler to backtrack and prove that this branch cannot be taken, and remove the branch.
@graphite-app graphite-app bot force-pushed the 07-02-refactor_linter_remove_a_branch branch from 93eaf7a to 0c7f9e8 Compare July 2, 2025 10:51
@graphite-app graphite-app bot merged commit 0c7f9e8 into main Jul 2, 2025
23 checks passed
@graphite-app graphite-app bot deleted the 07-02-refactor_linter_remove_a_branch branch July 2, 2025 10:54
@graphite-app graphite-app bot removed the 0-merge Merge with Graphite Merge Queue label Jul 2, 2025
@oxc-bot oxc-bot mentioned this pull request Jul 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-linter Area - Linter C-cleanup Category - technical debt or refactoring. Solution not expected to change behavior

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants