Skip to content

Conversation

@philogb
Copy link

@philogb philogb commented Oct 30, 2013

When content.length is less than maxNodes then that line would fail.

When `content.length` is less than `maxNodes` then that line would fail.
@aemkei
Copy link
Member

aemkei commented Oct 31, 2013

Shouldn't it be:

if (
  bestNodes.content[i] && 
  bestNodes.content[i][0]
) {
  ...
}

?

@philogb
Copy link
Author

philogb commented Oct 31, 2013

The more checks the better.

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.

2 participants