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/controllers/category.js #159

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

zou-Justin
Copy link

@zou-Justin zou-Justin commented Jan 23, 2025

Resolves #144

This is reducing the cognitive load in src/controllers/category.js from 27 to 15 by adding in 3 new helper functions and calling those functions in our if statements instead.

@coveralls
Copy link

Pull Request Test Coverage Report for Build 12937359976

Details

  • 25 of 25 (100.0%) changed or added relevant lines in 2 files are covered.
  • 1 unchanged line in 1 file lost coverage.
  • Overall coverage increased (+0.007%) to 82.678%

Files with Coverage Reduction New Missed Lines %
src/meta/errors.js 1 76.74%
Totals Coverage Status
Change from base Build 12896760049: 0.007%
Covered Lines: 22329
Relevant Lines: 25586

💛 - Coveralls

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/controllers/category.js
2 participants