search: remove check on negative search limit.

It's defined and implemented to mean infinite.

Change-Id: Ia50fd2b101d800ba442b4767ddf1c9bf57ea999f
This commit is contained in:
Brad Fitzpatrick 2014-03-10 19:31:21 -07:00
parent bfaf8fa120
commit bfe5eafb44
1 changed files with 0 additions and 3 deletions

View File

@ -207,9 +207,6 @@ func (q *SearchQuery) addContinueConstraint() error {
}
func (q *SearchQuery) checkValid(ctx *context.Context) (sq *SearchQuery, err error) {
if q.Limit < 0 {
return nil, errors.New("negative limit")
}
if q.Sort >= maxSortType || q.Sort < 0 {
return nil, errors.New("invalid sort type")
}