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 codesmell in callWithCbOrNextTick and closeWithCbOrNextTick #194

Merged
merged 2 commits into from
Aug 23, 2022

Conversation

Uzlopak
Copy link
Contributor

@Uzlopak Uzlopak commented Aug 23, 2022

Checklist

@Uzlopak Uzlopak changed the title fix codesmell in callWithCbOrNextTick fix codesmell in callWithCbOrNextTick and closeWithCbOrNextTick Aug 23, 2022
Comment on lines +405 to +406
function callWithCbOrNextTick (func, cb) {
const context = this._server
Copy link
Member

Choose a reason for hiding this comment

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

this is never called with the 3rd argument?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

never called with 3rd argument

@@ -467,8 +467,8 @@ function timeoutCall (func, rootErr, context, cb) {
}
}

function closeWithCbOrNextTick (func, cb, context) {
context = this._server
function closeWithCbOrNextTick (func, cb) {
Copy link
Member

Choose a reason for hiding this comment

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

this is never called with the 3rd argument?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

never called with 3rd argument

Copy link
Member

@mcollina mcollina left a comment

Choose a reason for hiding this comment

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

lgtm

@Uzlopak Uzlopak merged commit ac9366a into master Aug 23, 2022
@Uzlopak Uzlopak deleted the fix-callWithCbOrNextTick branch August 23, 2022 14:09
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