Skip to content

Don't add space for empty initializer in a for loop #132

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

Closed
nex3 opened this issue Jan 13, 2015 · 0 comments
Closed

Don't add space for empty initializer in a for loop #132

nex3 opened this issue Jan 13, 2015 · 0 comments
Assignees

Comments

@nex3
Copy link
Member

nex3 commented Jan 13, 2015

Currently, the following code:

for (; i < words.length; i++) {
  buffer.write(' ');
  buffer.write(words[i]);
}

is formatted as

for ( ; i < words.length; i++) {
  buffer.write(' ');
  buffer.write(words[i]);
}

It's a small thing, but the added space between "(" and ";" makes this harder to read.

@munificent munificent self-assigned this Jan 14, 2015
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

No branches or pull requests

2 participants