Skip to content

refactor: replace nested ternaries with early returns - #153

Merged
kirillgroshkov merged 1 commit into
mainfrom
lint-no-nested-ternary
Sep 1, 2026
Merged

refactor: replace nested ternaries with early returns#153
kirillgroshkov merged 1 commit into
mainfrom
lint-no-nested-ternary

Conversation

@fiddur

@fiddur fiddur commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

Rewrites the 8 nested ternary expressions in the codebase as early returns or if/else, in preparation for enabling the no-nested-ternary lint rule.

Pure readability change — behaviour is identical, and no lint configuration is changed here.

🤖 Generated with Claude Code

https://claude.ai/code/session_01DXP6cFK7Mu2Jdh487AXmTc

Rewrites the 8 nested ternary expressions across js-lib, nodejs-lib,
backend-lib and datastore-lib as early returns or if/else. Pure
readability change, behaviour is identical.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DXP6cFK7Mu2Jdh487AXmTc
@fiddur
fiddur marked this pull request as ready for review September 1, 2026 13:58
@kirillgroshkov
kirillgroshkov merged commit eac021e into main Sep 1, 2026
3 checks passed
@kirillgroshkov
kirillgroshkov deleted the lint-no-nested-ternary branch September 1, 2026 15:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants