Skip to content

Fix lint failure#16338

Merged
2 commits merged into
masterfrom
fix-lint
Jun 7, 2017
Merged

Fix lint failure#16338
2 commits merged into
masterfrom
fix-lint

Conversation

@ghost

@ghost ghost commented Jun 7, 2017

Copy link
Copy Markdown

#16315 and #16299 went in around the same time.

@sandersn sandersn left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would rather fix this by adding { ... }, since there's already a blank line with no trailing }. But let's take this for now.

@rbuckton

rbuckton commented Jun 7, 2017

Copy link
Copy Markdown
Contributor

I concur with @sandersn. Generally, eliding the braces on a same-line if statement works best if the if is short and entirely on the same line. A multi-line condition if buries the statement and makes it harder to pick out at a glance.

@ghost ghost merged commit 43e3d60 into master Jun 7, 2017
@ghost ghost deleted the fix-lint branch June 7, 2017 22:50
@microsoft microsoft locked and limited conversation to collaborators Jun 14, 2018
This pull request was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants