Commit 42a8436a authored by Oswaldo Ferreira's avatar Oswaldo Ferreira

Remove tap and use simplified method call

parent 890f9801
......@@ -581,7 +581,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