P1B: Refactor (packages/app/src/components/updater-action.ts:7): Function with many returns (count = 7): updaterAction
Open
@jktakeshi 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/app/src/components/updater-action.ts
Function(s)/scope targeted
updaterAction()
Relevant Qlty output
packages/app/src/components/updater-action.ts
Function with many returns (count = 7): updaterAction
7 export function updaterAction(state: UpdaterState | undefined) {
8 if (!state) return { label: "settings.updates.action.checkNow" as const }
9 switch (state.status) {
10 case "checking":
11 return { label: "settings.updates.action.checking" as const }
12 case "downloading":
[hid 11 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.