We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
//Is switch (x) { case 1: { return 1; } break; } //ShouldBe switch (x) { case 1: { return 1; } break; }
There's an extra line when there's a scope block introduced. Reference
The text was updated successfully, but these errors were encountered:
It looks like this is actually a problem with block. I think this example makes it more clear what is going on
switch (x) { case 1: { { return 1; } break; } }
It also happens here
void MethodName() { { var x = 1; } }
We may be assuming that a block always needs to start with a line, which causes a double line in these cases.
Sorry, something went wrong.
@belav I see. You're completely right. I've updated the title to reflect that
Ensure block in block doesn't get extra Line
d5a0255
closes #316
Ensure block in block doesn't get extra Line (#347)
8d5dc05
belav
Successfully merging a pull request may close this issue.
There's an extra line when there's a scope block introduced.
Reference
The text was updated successfully, but these errors were encountered: