This is an automated email from the ASF dual-hosted git repository.
sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/whimsy.git
The following commit(s) were added to refs/heads/master by this push:
new 8503a54 Only send message if there was a change!
8503a54 is described below
commit 8503a545ccd43b491928b15c5268a5586bb5f412
Author: Sebb <[email protected]>
AuthorDate: Fri Feb 8 15:00:10 2019 +0000
Only send message if there was a change!
---
www/roster/public_ldap_people.rb | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/www/roster/public_ldap_people.rb b/www/roster/public_ldap_people.rb
index 251466c..57620eb 100644
--- a/www/roster/public_ldap_people.rb
+++ b/www/roster/public_ldap_people.rb
@@ -80,5 +80,8 @@ if changed? and @old_file
previous = JSON.parse(@old_file, :symbolize_names=>false)
now = info[:people].keys
old = previous['people'].keys
- Wunderbar.warn "Unexpected removal of following names: #{old-now}"
+ diff = old - now
+ unless diff.empty?
+ Wunderbar.warn "Unexpected removal of following names: #{diff}"
+ end
end
\ No newline at end of file