Skip to content

refactor(sonar): resolve nested ternary operators (typescript:S3358) - #3360

Merged
afonsojramos merged 3 commits into
mainfrom
sonar/S3358
Oct 4, 2026
Merged

afonsojramos merged 3 commits into
mainfrom
sonar/S3358

Conversation

@setchy

@setchy setchy commented Oct 3, 2026 •

Copy link
Copy Markdown
Member

SonarCloud: typescript:S3358 (filtered issues)

Resolves Sonar rule typescript:S3358 — Ternary operators should not be nested (7 issues).

Replaced nested ternaries with if/else blocks or extracted helpers across:

  • useAccountsStore.ts, tray.ts, useSettingsStore.ts, SystemSettings.tsx, keyboardShortcut.ts, Accounts.tsx.

Lint, tsc, and the full test suite pass.

@github-actions github-actions Bot added the refactor Refactoring of existing feature label Oct 3, 2026
@setchy
setchy marked this pull request as ready for review October 3, 2026 21:25
@setchy
setchy requested a review from afonsojramos as a code owner October 3, 2026 21:25
@sonarqubecloud

sonarqubecloud Bot commented Oct 3, 2026

Copy link
Copy Markdown

@setchy setchy changed the title refactor(sonar): resolve S3358 nested ternary operators refactor(sonar): resolve nested ternary operators (S3358) Oct 3, 2026
@setchy setchy changed the title refactor(sonar): resolve nested ternary operators (S3358) refactor(sonar): resolve nested ternary operators (typescript:S3358) Oct 3, 2026
@afonsojramos
afonsojramos merged commit ce299a4 into main Oct 4, 2026
31 checks passed
@afonsojramos
afonsojramos deleted the sonar/S3358 branch October 4, 2026 00:02
@github-actions github-actions Bot added this to the Release 7.x.x milestone Oct 4, 2026
@github-actions

github-actions Bot commented Oct 4, 2026

Copy link
Copy Markdown
Contributor

🎉 This pull request is included in Gitify v7.9.0! 🎉

Downloads for macOS, Windows, and Linux are available on the release page.

Thanks for helping make Gitify better!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

refactor Refactoring of existing feature

Development

Successfully merging this pull request may close these issues.

2 participants