Commit 11d622d5 authored by Shinya Maeda's avatar Shinya Maeda

Use cheap operation for `Ci::Pipeline#all_merge_requests`

parent e216ac2c
......@@ -635,7 +635,7 @@ module Ci
def all_merge_requests
@all_merge_requests ||=
if merge_request?
project.merge_requests.where(id: merge_request.id)
project.merge_requests.where(id: merge_request_id)
else
project.merge_requests.where(source_branch: ref)
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