Skip to content

Formatting: keep simple if / else on the same line#51545

Merged
pugnascotia merged 1 commit intoelastic:7.6from
pugnascotia:formatter-config-single-line-if-else-7-6
Jan 29, 2020
Merged

Formatting: keep simple if / else on the same line#51545
pugnascotia merged 1 commit intoelastic:7.6from
pugnascotia:formatter-config-single-line-if-else-7-6

Conversation

@pugnascotia
Copy link
Copy Markdown
Contributor

Backport of #51526.

Previous the formatter was breaking simple if/else statements (i.e.
without braces) onto separate lines, which could be fragile because the
formatter cannot also introduce braces. Instead, keep such expressions
on the same line.

Backport of elastic#51526.

Previous the formatter was breaking simple if/else statements (i.e.
without braces) onto separate lines, which could be fragile because the
formatter cannot also introduce braces. Instead, keep such expressions
on the same line.
@pugnascotia pugnascotia added :Core/Infra/Core Core issues without another label backport v7.6.0 labels Jan 28, 2020
@elasticmachine
Copy link
Copy Markdown
Collaborator

Pinging @elastic/es-core-infra (:Core/Infra/Core)

@pugnascotia pugnascotia merged commit d77c3b2 into elastic:7.6 Jan 29, 2020
@pugnascotia pugnascotia deleted the formatter-config-single-line-if-else-7-6 branch January 29, 2020 10:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants