cht-core
cht-core copied to clipboard
fix(#8803): refactor formatContacts to reduce cognitive complexity
Description
Refactor formatContacts to reduce cognitive complexity.
Closes #8803
Code review checklist
- [ ] Readable: Concise, well named, follows the style guide, documented if necessary.
- [ ] Documented: Configuration and user documentation on cht-docs
- [ ] Tested: Unit and/or e2e where appropriate
- [ ] Internationalised: All user facing text
- [ ] Backwards compatible: Works with existing data and configuration or includes a migration. Any breaking changes documented in the release notes.
Compose URLs
If Build CI hasn't passed, these may 404:
License
The software is provided under AGPL-3.0. Contributions to this project are accepted under the same license.
Hi @jkuester , as I wait for the CI to go green please review my refactor when you have a chance. Thanks.