New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix: set indent level to return/throw argument (fixes #8710) #8711
Conversation
LGTM |
Hmm, it seems like this shouldn't be necessary -- I would have expected the argument to be indented anyway because it's parenthesized. I'll take a look at it later today. |
The issue isn't with (
foo ? bar :
baz
) This is happening because There are a few ways to fix this:
Option 2 seems like a better solution for preventing future bugs, although it probably has slightly worse performance. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See #8711 (comment)
@not-an-aardvark Thank you very much. I'm closing this PR as favor of #8719. |
What is the purpose of this pull request? (put an "X" next to item)
[X] Bug fix (template)
Fixes #8710 .
What changes did you make? (Give an overview)
This PR make that
indent
rule set indent levels ofnode.argument
property ofReturnStatement
/ThrowStatement
.Is there anything you'd like reviewers to focus on?
Please check this direction is correct.