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 for 'Can't compress when there are no elements to compress' error #202804

Merged
merged 1 commit into from
Jan 19, 2024

Conversation

benibenj
Copy link
Contributor

This PR addresses the issue where an error was thrown when trying to compress an empty list of elements. The fix involves adding a check to ensure that there are at least two elements before attempting to compress. This prevents the error from being thrown when the list of elements is empty or contains only one element.

Fixes #202800

@benibenj benibenj enabled auto-merge (squash) January 19, 2024 09:17
@benibenj benibenj self-assigned this Jan 19, 2024
@VSCodeTriageBot VSCodeTriageBot added this to the December / January 2024 milestone Jan 19, 2024
@benibenj benibenj merged commit f964dcc into main Jan 19, 2024
7 checks passed
@benibenj benibenj deleted the benibenj/chemical-manatee branch January 19, 2024 09:38
@microsoft microsoft locked and limited conversation to collaborators Jun 10, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ERR Can't compress when there are no elements to compress
3 participants