diff options
author | http://jneen.net/ <jneen@jneen.net> | 2017-08-01 12:51:14 -0700 |
---|---|---|
committer | http://jneen.net/ <jneen@jneen.net> | 2017-08-03 09:07:18 -0700 |
commit | 8386d69f8f4a75a45e0226f4ad89b7d200c6d84d (patch) | |
tree | 3767567f321d3191e7bfb16c93a5eb067fd7d535 /app/services/notification_recipient_service.rb | |
parent | 19309b970556797027e57c212d9b9aa053c36892 (diff) | |
download | gitlab-ce-8386d69f8f4a75a45e0226f4ad89b7d200c6d84d.tar.gz |
.notifiable_users: compact the passed-in users
Diffstat (limited to 'app/services/notification_recipient_service.rb')
-rw-r--r-- | app/services/notification_recipient_service.rb | 2 |
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) |