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/topics/create.js #47

Open
wants to merge 9 commits into
base: f24
Choose a base branch
from

Conversation

AlAnoud2003
Copy link

@AlAnoud2003 AlAnoud2003 commented Sep 2, 2024

Refactored the post function to reduce its cognitive complexity from 19 to the 15 allowed.

The changes made was adding a check to see if the user has the necessary privileges to create or to tag.

Resolves #24

@coveralls
Copy link

coveralls commented Sep 2, 2024

Pull Request Test Coverage Report for Build 10682472308

Details

  • 5 of 5 (100.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.002%) to 82.673%

Totals Coverage Status
Change from base Build 10550029021: 0.002%
Covered Lines: 22327
Relevant Lines: 25586

💛 - Coveralls

Copy link

sonarcloud bot commented Sep 3, 2024

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/topics/create.js
2 participants