Skip to content

Conversation

@willkg
Copy link
Member

@willkg willkg commented Feb 6, 2015

If max_questions or max_documents (or both) are 0, then we should do the
least amount of work and just return [].

r?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

linter failed in travis because q1 isn't used.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My bad. I'll fix that.

If max_questions or max_documents (or both) are 0, then we should do the
least amount of work and just return [].
@willkg
Copy link
Member Author

willkg commented Feb 6, 2015

^^^ Fixes the lint issue.

rlr added a commit that referenced this pull request Feb 6, 2015
@rlr rlr merged commit 176c43a into mozilla:master Feb 6, 2015
@mythmon
Copy link
Contributor

mythmon commented Feb 6, 2015

It seems like you only did this for the questions function, not the documents function?

@willkg
Copy link
Member Author

willkg commented Feb 6, 2015

Oops--you're right. I thought it got called twice. I'll do another fix later today.

@willkg willkg deleted the 1122539-handle-0-case branch March 11, 2015 15:32
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.

3 participants