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/api/chats.js #49

Open
gao-yuhan opened this issue Jan 21, 2025 · 2 comments · May be fixed by #166
Open

Refactoring code in src/api/chats.js #49

gao-yuhan opened this issue Jan 21, 2025 · 2 comments · May be fixed by #166
Assignees

Comments

@gao-yuhan
Copy link

gao-yuhan commented Jan 21, 2025

The chatsAPI.update function in src/api/chats.js exceeds the allowed Cognitive Complexity threshold. The current Cognitive Complexity is 16, while the allowed limit is 15. This makes the code harder to read, maintain, and extend.
To refactor the chatsAPI.update function to reduce its Cognitive Complexity to meet the allowed threshold, without altering its functionality.

@gao-yuhan
Copy link
Author

I would like to work on this please!

Copy link

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

@gao-yuhan gao-yuhan changed the title Refactoring code in public/src/admin/advanced/events.js Refactoring code in src/api/chats.js Jan 21, 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
1 participant