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

Refactoring code in src/webserver.js #5

Open
roma2023 opened this issue Aug 28, 2024 · 2 comments · May be fixed by #6
Open

Refactoring code in src/webserver.js #5

roma2023 opened this issue Aug 28, 2024 · 2 comments · May be fixed by #6
Assignees

Comments

@roma2023
Copy link

Proposal

Refactor listen Function to Reduce Cognitive Complexity in src/webserver.js

Where

src/webserver.js, within the listen function.

Why

The listen function currently has a Cognitive Complexity of 19, which exceeds the allowed threshold of 15.

How

The function can be refactored by breaking down conditional logic into smaller helper functions or simplifying nested conditions.

@roma2023
Copy link
Author

I would like to work on this please!

Copy link

Great! I assigned you (@roma2023) to the issue. Have fun working on it!

@roma2023 roma2023 linked a pull request Aug 28, 2024 that will close this issue
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 a pull request may close this issue.

1 participant