Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhttp://jneen.net/ <jneen@jneen.net>2017-08-01 22:51:14 +0300
committerhttp://jneen.net/ <jneen@jneen.net>2017-08-03 19:07:18 +0300
commit8386d69f8f4a75a45e0226f4ad89b7d200c6d84d (patch)
tree3767567f321d3191e7bfb16c93a5eb067fd7d535 /app/services
parent19309b970556797027e57c212d9b9aa053c36892 (diff)
.notifiable_users: compact the passed-in users
Diffstat (limited to 'app/services')
-rw-r--r--app/services/notification_recipient_service.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/services/notification_recipient_service.rb b/app/services/notification_recipient_service.rb
index 0627cca9214..d412e5414b3 100644
--- a/app/services/notification_recipient_service.rb
+++ b/app/services/notification_recipient_service.rb
@@ -3,7 +3,7 @@
#
module NotificationRecipientService
def self.notifiable_users(users, *args)
- users.map { |u| NotificationRecipient.new(u, *args) }.select(&:notifiable?).map(&:user)
+ users.compact.map { |u| NotificationRecipient.new(u, *args) }.select(&:notifiable?).map(&:user)
end
def self.notifiable?(user, *args)