CMU-17313Q / NodeBB

GNU General Public License v3.0
0 stars 45 forks source link

Refactor `src/topics/unread.js` #14

Open Tasnim1147 opened 2 weeks ago

Tasnim1147 commented 2 weeks ago

Issue: The getTids function in src/topics/unread.js has a nesting level greater than 4, which reduces the readability and maintainability of the code.

Objective: Refactor the getTids function to reduce the nesting level.

Details: Nested functions are a common practice in JavaScript, allowing inner functions to access the variables and parameters of outer functions. However, deeply nested functions can make code harder to read and understand, especially if the functions are long or if there are many levels of nesting. To improve the readability and maintainability of the getTids function, it is necessary to refactor the code by breaking down the nested logic into smaller, more manageable helper functions or by simplifying the existing structure.

Tasnim1147 commented 2 weeks ago

I would like to work on this please!

github-actions[bot] commented 2 weeks ago

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