GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Remove unused `shouldBreak` check in `printTernaryOld` by leaysgur · Pull Request #18354 · prettier/prettier

Conversation

@leaysgur

@leaysgur leaysgur commented Nov 28, 2025

Copy link
Copy Markdown
Contributor

Description

While debugging oxc_formatter, I noticed this condition seems unnecessary.
(Since it's certain to break when comments are printed?)

If you have any concerns, feel free to close it.
(And if you do, I'd appreciate it if you could let us know why.)

Checklist

  • I’ve added tests to confirm my change works.
  • (If changing the API or CLI) I’ve documented the changes I’ve made (in the docs/ directory).
  • (If the change is user-facing) I’ve added my changes to changelog_unreleased/*/XXXX.md file following changelog_unreleased/TEMPLATE.md.
  • I’ve read the contributing guidelines.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

fisker reacted with heart emoji
All reactions
  • ❤️ 1 reaction
@pkg-pr-new

pkg-pr-new Bot commented Nov 28, 2025 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

Open in StackBlitz

yarn add https://pkg.pr.new/prettier/prettier/@prettier/[email protected]
yarn add https://pkg.pr.new/prettier/prettier/@prettier/[email protected]
yarn add https://pkg.pr.new/prettier/[email protected]

commit: b6ac636

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@netlify

netlify Bot commented Nov 28, 2025 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

✅ Deploy Preview for prettier ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit b6ac636
🔍 Latest deploy log https://app.netlify.com/projects/prettier/deploys/692947c2eb12cb0008f2c85a
😎 Deploy Preview https://deploy-preview-18354--prettier.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@leaysgur
Remove unused shouldBreak check
b6ac636
@leaysgur
leaysgur force-pushed the main branch from 27e5198 to b6ac636 Compare November 28, 2025 06:57
@github-actions github-actions Bot mentioned this pull request Nov 28, 2025
Misc prettier/prettier-regression-testing#595
Closed
@fisker

fisker commented Nov 28, 2025

Copy link
Copy Markdown
Member

Thanks, I checked history, it seems starts with some case for JSX e17bb5e but later check comments instead.

Should be safe to remove.

leaysgur reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

fisker
fisker approved these changes Nov 28, 2025
View reviewed changes
@fisker
fisker merged commit 7049317 into prettier:main Nov 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@fisker fisker fisker approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@leaysgur @fisker
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.