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 'public/src/admin/appearance/themes.js' #154

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

pebble-fish
Copy link

@pebble-fish pebble-fish commented Jan 23, 2025

In the src/.../themes.js file, there are a number of nested if/for/etc. calls. This commit creates helper functions that make the code easier to read, streamlining logic, and removing the nested calls. Resolves #69 if accepted. These changes have been tested via 'npm run lint' and 'npm run test'.

…e issue with nested functions.

In the src/.../themes.js file, there are a number of nested functions which make the code difficult for developers to understand and maintain. This not only makes maintenance less efficient but also more expensive, as it breaks the normal linear reading flow.
@pebble-fish pebble-fish changed the title Refactoring code in 'public/src/admin/appearance/themes.js' to resolv… Refactoring code in 'public/src/admin/appearance/themes.js' Jan 23, 2025
@coveralls
Copy link

Pull Request Test Coverage Report for Build 12936612122

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 82.671%

Totals Coverage Status
Change from base Build 12896760049: 0.0%
Covered Lines: 22323
Relevant Lines: 25582

💛 - 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.

Refactor code in public/src/admin/appearance/themes.js
2 participants