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 and test for Issue #41 #42

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

sehrgut
Copy link

@sehrgut sehrgut commented Aug 23, 2013

When buffers is an array of one buffer of zero length (falsey), this reduce operation ends up producing the string "0" in the output buffer. I couldn't find any reason the reduce operation needed to test either left or right, since left will always be a Number, and both places MergeBuffers is used it buffers elements will always have length. It still passes the entire test suite with this patch in place.

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