P1B: Refactor (packages/desktop/src/main/updater-controller.ts): Function with many returns (count = 6): check
Open
@mishagarg2006 is already working on this.
Since Aug 29, 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/desktop/src/main/updater-controller.ts
Function(s)/scope targeted
check()
Relevant Qlty output
Function with many returns (count = 6): check
38 const check = () => {
39 if (!input.enabled) return Promise.resolve(state)
40 if (state.status === "ready") return Promise.resolve(state)
41 if (pending) return pending
42
43 pending = (async () => {
[hid 21 additional lines]
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.