Skip to content

Conversation

@jtkiesel
Copy link
Contributor

@jtkiesel jtkiesel commented Jan 8, 2026

What changed with this PR:

Ternaries' binary expressions in return statements are indented properly again.

Example

Input

void example() {
  return aaaaaaaaaa && bbbbbbbbbb && cccccccccc && dddddddddd && eeeeeeeeee && ffffffffff ? gggggggggg : hhhhhhhhhh;
}

Output

void example() {
  return aaaaaaaaaa &&
    bbbbbbbbbb &&
    cccccccccc &&
    dddddddddd &&
    eeeeeeeeee &&
    ffffffffff
    ? gggggggggg
    : hhhhhhhhhh;
}

Relative issues or prs:

Closes #802

@jtkiesel jtkiesel merged commit ffac8cd into jhipster:main Jan 8, 2026
6 checks passed
@jtkiesel jtkiesel deleted the fix/indent-return-ternary-binary-expressions branch January 8, 2026 04:42
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.

Regression in 2.8.0 with ternaries

1 participant