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

Simplify ConnectionI.checkState in JavaScript #2989

Merged
merged 2 commits into from
Oct 28, 2024

Conversation

pepone
Copy link
Member

@pepone pepone commented Oct 28, 2024

A Small simplification for checkState implementation.

@pepone pepone requested a review from bernardnormier October 28, 2024 18:56
//
this._adapter = null;
this._finishedPromises.forEach(p => p.resolve());
// We aren't finished until the state is finished and all outstanding requests are completed. Otherwise we
Copy link
Member Author

Choose a reason for hiding this comment

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

The previous code check _state twice with different conditions, no need for that. I also remove the clear of OA which isn't strictly required for JavaScript.

@pepone pepone merged commit 379e2b1 into zeroc-ice:main Oct 28, 2024
16 of 17 checks passed
InsertCreativityHere pushed a commit to InsertCreativityHere/compiler-comparison that referenced this pull request Jan 1, 2025
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