Commit 35c02672 authored by Oswaldo Ferreira's avatar Oswaldo Ferreira

Simplify CreateService#assignee_ids method

parent 0d598340
......@@ -24,12 +24,9 @@ module Boards
# This can be safely removed when the board
# receive multiple assignee support.
# See: https://gitlab.com/gitlab-org/gitlab-ee/issues/3786
def assignee_ids
@board_assignee ||= board.assignee
return [] unless @board_assignee
[@board_assignee.id]
@assigne_ids ||= Array(board.assignee&.id)
end
def board
......
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