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

Refactored code in src/socket.io/index.js #161

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

lynzhlang
Copy link

Cognitive Complexity of function onMessage (16) was higher than the desired cognitive complexity (15). Resolved by creating a helper function to improve readability and decrease complexity of the function. Resolves #113 if accepted!

@coveralls
Copy link

coveralls commented Jan 23, 2025

Pull Request Test Coverage Report for Build 13039642570

Details

  • 5 of 8 (62.5%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.001%) to 82.672%

Changes Missing Coverage Covered Lines Changed/Added Lines %
src/socket.io/index.js 5 8 62.5%
Totals Coverage Status
Change from base Build 12896760049: 0.001%
Covered Lines: 22326
Relevant Lines: 25585

💛 - Coveralls

Updated to add team names
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.

Refactoring code in src/socket.io/index.js
2 participants