CMU-17313Q / NodeBB

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

Refactor duplicate code in src/messaging/data.js #92

Open jdufitum opened 1 week ago

jdufitum commented 1 week ago

This pull request resolves issue https://github.com/CMU-17313Q/NodeBB/issues/8 Resolves https://github.com/CMU-17313Q/NodeBB/issues/8

This pull request refactors the code in src/messaging/data.js by removing duplicate code blocks between lines 83 and 89. The code has been optimized to improve maintainability and prevent redundancy. Additionally, adjustments were made to ensure functionality remains consistent after the refactor.

This pull request resolves issue #8 .

sonarcloud[bot] commented 1 week ago

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarCloud