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

refactor(data_structures): prepare for noUncheckedIndexedAccess #4146

Merged

Conversation

syhol
Copy link
Contributor

@syhol syhol commented Jan 10, 2024

Handling all noUncheckedIndexedAccess issues for the data_structures module, tracked in #4040

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This file "data_structures/binary_heap.ts" might need a bit of a closer review. The implementation seems sound for now but this won't help us catch issues in future. Are you happy leaving them as non-null assertions for now?

Copy link
Collaborator

@iuioiua iuioiua left a comment

Choose a reason for hiding this comment

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

Yes, I think the use of non-null assertions is valid in this case. Also, PTAL at the tweak I appplied, for future reference. Either way, LGTM! Thank you, Simon.

@iuioiua iuioiua enabled auto-merge (squash) January 10, 2024 20:17
@iuioiua iuioiua merged commit f2324e5 into denoland:main Jan 10, 2024
9 of 10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants