Use Array rather than compact, feedback:

https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/6342#note_17089690
This commit is contained in:
Lin Jen-Shin 2016-10-18 18:48:02 +08:00
parent ac51fb8882
commit 12ef494db8
1 changed files with 1 additions and 1 deletions

View File

@ -120,7 +120,7 @@ module Ci
# For now the only user who participates is the user who triggered
def participants(_current_user = nil)
[user].compact
Array(user)
end
def valid_commit_sha