Skip to content
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 3 bugs #1180

Merged
merged 4 commits into from
May 13, 2018
Merged

Fix 3 bugs #1180

merged 4 commits into from
May 13, 2018

Conversation

olafurpg
Copy link
Member

These are bundled together since I worked on them during a flight. See individual commits

This is a simple solution to avoid formatting output like
```scala
// before
if (in.hasRemaining) { bytesRead += 1; in.get() }
else 0
// after
if (in.hasRemaining) { bytesRead += 1; in.get() } else 0
```

This prevents concise syntax for declaring multiple statements in a
single line inside of an if body but I think it's better to produce
force a line break instead resulting in reasonable output instead of
forcing the following else on the same line.

Fixes scalameta#271
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant