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

added TransportStream option levelOnly as per request… #103

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

davelopware
Copy link

#40

Reduced some index.js calls and complexity for some of the eslint issues

Reduced some index.js calls and complexity for some of the eslint issues
Comment on lines +66 to +67
* @param {mixed} info - TODO: add param description.
* @returns {boolean} - TODO: add returns description.
Copy link
Contributor

Choose a reason for hiding this comment

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

PR leaves some TODOs open here.

Copy link
Author

Choose a reason for hiding this comment

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

These TODOs are inherited from the original method that I extracted the code from. I just split the method out to fix the worst eslint issues that were breaking the npm run test. I didn't want to assume what the descriptions are as I'm not super familiar with the code and project nomenclature.

Copy link
Contributor

Choose a reason for hiding this comment

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

I had looked in the diff for that but didn't see a corresponding line being moved from elsewhere. Where was it extracted from?
In any case, those TODOs are added automatically by some JSDoc support tools in IDE packages. With the comment in the line above, these two lines can probably just be removed.

@wbt
Copy link
Contributor

wbt commented Apr 7, 2022

Thanks for starting in on this!

@davelopware davelopware requested a review from wbt April 8, 2022 13:45
@@ -20,6 +22,7 @@ const TransportStream = module.exports = function TransportStream(options = {})

this.format = options.format;
this.level = options.level;
this.levelOnly = (options.levelOnly === true); // prevoius behaviour = not defined ~= false
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
this.levelOnly = (options.levelOnly === true); // prevoius behaviour = not defined ~= false
this.levelOnly = (options.levelOnly === true); // previous behaviour = not defined ~= false

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.

3 participants