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 to not nest functions over 4 levels deep #164

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

Conversation

jonassoh
Copy link

In file /src/topics/sorted.js, changed from lines 269 to 275 to not nest functions and instead changed the functions that were defined within topicData.filter() into constants to be called upon. Added console.log('Jonas Soh'); right before the changed lines to test the edited code runs smoothly when clicking on the fire "popular" icon. The coverage report shows the new code and raised no new errors.

@coveralls
Copy link

Pull Request Test Coverage Report for Build 12938988216

Details

  • 5 of 5 (100.0%) changed or added relevant lines in 1 file are covered.
  • 1 unchanged line in 1 file lost coverage.
  • Overall coverage decreased (-0.002%) to 82.669%

Files with Coverage Reduction New Missed Lines %
src/meta/errors.js 1 76.74%
Totals Coverage Status
Change from base Build 12896760049: -0.002%
Covered Lines: 22326
Relevant Lines: 25585

💛 - Coveralls

@jonassoh
Copy link
Author

resolves #149

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.

2 participants