Skip to content

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

Merged
pugnascotia merged 1 commit intoelastic:7.xfrom
pugnascotia:formatter-config-single-line-if-else-7x
Jan 29, 2020
Merged

Formatting: keep simple if / else on the same line#51544
pugnascotia merged 1 commit intoelastic:7.xfrom
pugnascotia:formatter-config-single-line-if-else-7x

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.7.0 labels Jan 28, 2020
@elasticmachine
Copy link
Copy Markdown
Collaborator

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

@pugnascotia pugnascotia merged commit d8bd736 into elastic:7.x Jan 29, 2020
@pugnascotia pugnascotia deleted the formatter-config-single-line-if-else-7x branch January 29, 2020 10:42
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