Skip to content

chore: add logical-assignment-operators#7409

Open
CommanderStorm wants to merge 6 commits intomaplibre:mainfrom
CommanderStorm:logical-assignment-operators
Open

chore: add logical-assignment-operators#7409
CommanderStorm wants to merge 6 commits intomaplibre:mainfrom
CommanderStorm:logical-assignment-operators

Conversation

@CommanderStorm
Copy link
Copy Markdown
Member

simplifies the code, but won't make it shorter until #7404

logical assigment is es2021

@CommanderStorm CommanderStorm requested a review from HarelM April 5, 2026 04:00
@codecov
Copy link
Copy Markdown

codecov bot commented Apr 5, 2026

Codecov Report

❌ Patch coverage is 92.66055% with 8 lines in your changes missing coverage. Please review.
✅ Project coverage is 92.60%. Comparing base (2dba72f) to head (862ba14).

Files with missing lines Patch % Lines
src/render/glyph_manager.ts 66.66% 2 Missing ⚠️
src/source/worker.ts 66.66% 2 Missing ⚠️
src/data/bucket/symbol_bucket.ts 80.00% 1 Missing ⚠️
src/source/canvas_source.ts 66.66% 1 Missing ⚠️
src/symbol/projection.ts 50.00% 1 Missing ⚠️
src/util/test/util.ts 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #7409      +/-   ##
==========================================
- Coverage   92.86%   92.60%   -0.26%     
==========================================
  Files         288      288              
  Lines       23998    23966      -32     
  Branches     5095     5086       -9     
==========================================
- Hits        22286    22194      -92     
- Misses       1712     1772      +60     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@CommanderStorm CommanderStorm requested a review from HarelM April 5, 2026 05:15
@CommanderStorm CommanderStorm enabled auto-merge (squash) April 5, 2026 05:16
if (this.imageAtlas) {
this.imageAtlas = null;
}
this.imageAtlas &&= null;
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Just = null without the if or &&?

if (this.dashPositions) {
this.dashPositions = null;
}
this.dashPositions &&= null;
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Same as above

if (this._frameId) {
this._frameId = null;
}
this._frameId &&= null;
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Same as above

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Maybe better to set it to false as this is a boolean, or even change its name to indicate it's not holding an id.

@HarelM
Copy link
Copy Markdown
Collaborator

HarelM commented Apr 5, 2026

Thanks! Done my review, looks good overall, added a few comments.

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.

2 participants