FIX code review

This commit is contained in:
Jasder 2020-06-01 15:29:00 +08:00
parent f64243d188
commit 03448c76f3
1 changed files with 2 additions and 2 deletions

View File

@ -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