Skip to content

refactor(linter/unicorn/prefer-object-from-entries): use if-let chains - #29287

Closed
camc314 wants to merge 1 commit into
mainfrom
codex/refactor-prefer-object-from-entries-let-chains
Closed

camc314 wants to merge 1 commit into
mainfrom
codex/refactor-prefer-object-from-entries-let-chains

Conversation

@camc314

@camc314 camc314 commented Nov 11, 2026 •

Copy link
Copy Markdown
Contributor

Replace the reducer matcher’s early returns with positive let chains and an if let / else if let pair for the Object.assign and object-spread forms. Slice patterns bind the expected arguments and properties. Existing diagnostics and snapshots are unchanged.

Copilot AI balanced review requested due to automatic review settings November 11, 2026 14:12

Copilot AI 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.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing. Review the Copilot code review billing settings.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 11, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-11T14:14:58.931506Z 82744e0 New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@camc314 camc314 changed the title refactor(linter/unicorn/prefer-object-from-entries): use let chains refactor(linter/unicorn/prefer-object-from-entries): use if-let chains Nov 11, 2026
@camc314
camc314 force-pushed the codex/refactor-prefer-object-from-entries-let-chains branch from 3290517 to 82744e0 Compare November 11, 2026 14:14
@github-actions github-actions Bot added the A-linter Area - Linter (oxlint): rules, config, diagnostics, fixes. Add L-* labels for details label Nov 11, 2026
Base automatically changed from codex/fix-prefer-object-from-entries-panic to main November 11, 2026 14:16
@camc314 camc314 closed this Nov 11, 2026
@codspeed

codspeed Bot commented Nov 11, 2026

Copy link
Copy Markdown
Contributor

Merging this PR will not alter performance

✅ 5 untouched benchmarks
⏩ 101 skipped benchmarks1


Comparing codex/refactor-prefer-object-from-entries-let-chains (82744e0) with main (a5f7617)

Open in CodSpeed

Footnotes

  1. 101 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports. ↩

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-linter Area - Linter (oxlint): rules, config, diagnostics, fixes. Add L-* labels for details

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants