Closed rehas closed 3 months ago
This is tricky because this is an important part of the app. I've been burned by ||
conditions and I'm hesistant to accept as is. I will re-submit a better version of this. Also, I would like to discourage PRs like this where the benefit is not weighty enough to merit an effort. Best to follow the old axiom "if it ain't broke, don't fix it"
Also the tests don't have a case for what the effect is doing in this case, but there should be a test as it's important.
Summary
To reduce cognitive complexity and improve readability, we can move the common conditionals to the early phase and bail.
Change Type
Testing
Test Configuration:
Checklist
Please delete any irrelevant options.