aboutsummaryrefslogtreecommitdiffstats
path: root/routers/api/v1/repo/topic.go
diff options
context:
space:
mode:
Diffstat (limited to 'routers/api/v1/repo/topic.go')
-rw-r--r--routers/api/v1/repo/topic.go6
1 files changed, 0 insertions, 6 deletions
diff --git a/routers/api/v1/repo/topic.go b/routers/api/v1/repo/topic.go
index 530b92a10d..f256ab9422 100644
--- a/routers/api/v1/repo/topic.go
+++ b/routers/api/v1/repo/topic.go
@@ -275,12 +275,6 @@ func TopicSearch(ctx *context.APIContext) {
kw := ctx.Query("q")
listOptions := utils.GetListOptions(ctx)
- if listOptions.Page < 1 {
- listOptions.Page = 1
- }
- if listOptions.PageSize < 1 {
- listOptions.PageSize = 10
- }
topics, err := models.FindTopics(&models.FindTopicOptions{
Keyword: kw,