Commit 7e916cc7 authored by Arturo Herrero's avatar Arturo Herrero

Improve variable name

parent 21695d7f
......@@ -78,7 +78,7 @@ module API
MergeRequestsFinder.new(current_user, authorized_only: true).execute
end
def authorized_merge_requests_for(project)
def authorized_merge_requests_for_project(project)
MergeRequestsFinder.new(current_user, authorized_only: true, project_id: project.id).execute
end
......@@ -158,7 +158,7 @@ module API
get ':namespace/:project/pulls' do
user_project = find_project_with_access(params)
merge_requests = authorized_merge_requests_for(user_project)
merge_requests = authorized_merge_requests_for_project(user_project)
present paginate(merge_requests), with: ::API::Github::Entities::PullRequest
end
......@@ -199,7 +199,7 @@ module API
get ':namespace/:project/events' do
user_project = find_project_with_access(params)
merge_requests = authorized_merge_requests_for(user_project)
merge_requests = authorized_merge_requests_for_project(user_project)
present paginate(merge_requests), with: ::API::Github::Entities::PullRequestEvent
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment