Commit 395e500f authored by Oswaldo Ferreira's avatar Oswaldo Ferreira

Remove tap and use simplified method call

parent 29448964
......@@ -513,7 +513,8 @@ module API
# See https://gitlab.com/gitlab-org/gitlab-ce/issues/42344 for more
# information.
expose :merge_status do |merge_request|
merge_request.tap(&:check_if_can_be_merged).merge_status
merge_request.check_if_can_be_merged
merge_request.merge_status
end
expose :diff_head_sha, as: :sha
expose :merge_commit_sha
......
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