mirror of https://github.com/perkeep/perkeep.git
search: remove check on negative search limit.
It's defined and implemented to mean infinite. Change-Id: Ia50fd2b101d800ba442b4767ddf1c9bf57ea999f
This commit is contained in:
parent
bfaf8fa120
commit
bfe5eafb44
|
@ -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")
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue