From 03448c76f3dc5a71e288ffd3347c55e783df364e Mon Sep 17 00:00:00 2001 From: Jasder <2053003901@@qq.com> Date: Mon, 1 Jun 2020 15:29:00 +0800 Subject: [PATCH] FIX code review --- app/services/gitea/repository/tags/list_service.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/services/gitea/repository/tags/list_service.rb b/app/services/gitea/repository/tags/list_service.rb index e1f139820..0f8158b3e 100644 --- a/app/services/gitea/repository/tags/list_service.rb +++ b/app/services/gitea/repository/tags/list_service.rb @@ -21,11 +21,11 @@ class Gitea::Repository::Tags::ListService < Gitea::ClientService end def set_page - (params[:page] || 1).to_i + (params[:page] || PAGINATE_DEFAULT_PAGE).to_i end def set_limit - (params[:limit] || 50).to_i + (params[:limit] || PAGINATE_DEFAULT_LIMIT).to_i end def url