P1B: Refactor (packages/ui/src/theme/color.ts:111): Complex binary expression
Open
@mchang1012 is already working on this.
Since Sep 7, 2026.
- Dominant language
- TypeScript
- Stars
- 0
- Forks
- 126
- PR merge metrics
- No merged PRs in 30d
Description
Uniqueness check
- I have searched open issues and confirmed this file + smell is not already taken.
Full path to the Typescript file
packages/ui/src/theme/color.ts
Function(s)/scope targeted
fitOklch function, there is a repeated RGB range-check conditions at lines 111 and 120
Relevant Qlty output
111 Complex binary expression
120 Complex binary expression
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.