Skip to content
New issue

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

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

Already on GitHub? # to your account

Reduce unnecessary casts, use convert when unsafe #1357

Merged
merged 2 commits into from
Sep 17, 2022

Conversation

JosefWN
Copy link
Contributor

@JosefWN JosefWN commented Sep 5, 2022

  • Fixes [BUG] Invalid cast in getScaleZoom #1346
  • LatLngBounds.fromPoints converted degrees to radians, then radians back to degrees... Also used num and nullables although we were only dealing with doubles.
  • Removed some unnecessary casts coming from inferred types (where double can be inferred rather than num).

Not sure if we can guarantee that all CustomPoint<num> are in fact doubles, but left them for now since it would be a bigger change.

@JaffaKetchup JaffaKetchup self-requested a review September 6, 2022 07:39
Copy link
Contributor

@TesteurManiak TesteurManiak left a comment

Choose a reason for hiding this comment

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

Looks good to me, @JaffaKetchup do you want to double check?

@JaffaKetchup
Copy link
Member

I'll take your word for it, I'll merge when I get a minute.

Copy link
Member

@JaffaKetchup JaffaKetchup left a comment

Choose a reason for hiding this comment

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

Submitting approval on behalf of @TesteurManiak

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] Invalid cast in getScaleZoom
3 participants