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

removed unnecessary else statements #976

Merged
merged 1 commit into from
Jan 20, 2014
Merged

Conversation

daftshady
Copy link
Contributor

I think that self._write_buffer.append(data) is unnecessary because when data length is smaller than WRITE_BUFFER_CHUNK_SIZE, self._write_buffer.append(data[i:i + WRITE_BUFFER_CHUNK_SIZE]) in for loop just works as same as self._write_buffer.append(data) when i is 0.

bdarnell added a commit that referenced this pull request Jan 20, 2014
removed unnecessary else statements
@bdarnell bdarnell merged commit c51970d into tornadoweb:master Jan 20, 2014
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.

None yet

2 participants