From 12ef494db812de3790ad5f42152f9b3fdf8c9f3c Mon Sep 17 00:00:00 2001 From: Lin Jen-Shin <godfat@godfat.org> Date: Tue, 18 Oct 2016 18:48:02 +0800 Subject: [PATCH] Use Array rather than compact, feedback: https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/6342#note_17089690 --- app/models/ci/pipeline.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/ci/pipeline.rb b/app/models/ci/pipeline.rb index 941b01c29e0..d1c68300067 100644 --- a/app/models/ci/pipeline.rb +++ b/app/models/ci/pipeline.rb @@ -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 -- GitLab