Commit 14794190 authored by Kerri Miller's avatar Kerri Miller

Remove unused merge_request param

parent 78fcb83f
...@@ -58,7 +58,7 @@ module MergeRequests ...@@ -58,7 +58,7 @@ module MergeRequests
handle_milestone_change(merge_request) handle_milestone_change(merge_request)
handle_draft_status_change(merge_request, changed_fields) handle_draft_status_change(merge_request, changed_fields)
track_title_and_desc_edits(merge_request, changed_fields) track_title_and_desc_edits(changed_fields)
added_labels = merge_request.labels - old_labels added_labels = merge_request.labels - old_labels
if added_labels.present? if added_labels.present?
...@@ -111,7 +111,7 @@ module MergeRequests ...@@ -111,7 +111,7 @@ module MergeRequests
attr_reader :target_branch_was_deleted attr_reader :target_branch_was_deleted
def track_title_and_desc_edits(merge_request, changed_fields) def track_title_and_desc_edits(changed_fields)
tracked_fields = %w(title description) tracked_fields = %w(title description)
return unless changed_fields.any? { |field| tracked_fields.include?(field) } return unless changed_fields.any? { |field| tracked_fields.include?(field) }
......
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