Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(useCollapsedIf): ignore if with else clause #4322

Merged
merged 1 commit into from
Oct 17, 2024

Conversation

Conaclos
Copy link
Member

Summary

While I was testing the last version of Biome (#4320), I noted that useCollapsedIf doesn't ignore if with an else clause.
This PR fixes this bug.

Also, I improved the code fix by adding spaces around the && operator.

Test Plan

@github-actions github-actions bot added A-Linter Area: linter L-JavaScript Language: JavaScript and super languages labels Oct 17, 2024
@Conaclos Conaclos force-pushed the conaclos/useCollapsedIf-ignore-if-with-else branch from 7fbd9d6 to 126946f Compare October 17, 2024 16:05
Copy link

codspeed-hq bot commented Oct 17, 2024

CodSpeed Performance Report

Merging #4322 will not alter performance

Comparing conaclos/useCollapsedIf-ignore-if-with-else (126946f) with main (1303f99)

Summary

✅ 101 untouched benchmarks

@Conaclos Conaclos merged commit b122c09 into main Oct 17, 2024
12 checks passed
@Conaclos Conaclos deleted the conaclos/useCollapsedIf-ignore-if-with-else branch October 17, 2024 17:20
@siketyan
Copy link
Contributor

Thank you for fixing my mistakes @Conaclos 🙇

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Linter Area: linter L-JavaScript Language: JavaScript and super languages
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants