Commit 43da8db7 authored by Bob Van Landuyt's avatar Bob Van Landuyt

Clean up `discussions_to_resolve`-method

parent 3eeea426
...@@ -16,15 +16,15 @@ module Issues ...@@ -16,15 +16,15 @@ module Issues
def discussions_to_resolve def discussions_to_resolve
return [] unless merge_request_for_resolving_discussions return [] unless merge_request_for_resolving_discussions
@discussions_to_resolve ||= begin @discussions_to_resolve ||=
if discussion_to_resolve_id if discussion_to_resolve_id
Array(merge_request_for_resolving_discussions. discussion_or_nil = merge_request_for_resolving_discussions
find_diff_discussion(discussion_to_resolve_id)) .find_diff_discussion(discussion_to_resolve_id)
else Array(discussion_or_nil)
merge_request_for_resolving_discussions else
.resolvable_discussions merge_request_for_resolving_discussions
end .resolvable_discussions
end end
end end
end end
end 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