commit fdaf7d52bc7f110f2790931d280f63f4e56405ed
parent c6e5f7b87874cf8498f09da8f9e5869335921666
Author: wmorgan <wmorgan@5c8cc53c-5e98-4d25-b20a-d8db53a31250>
Date: Thu, 28 Dec 2006 23:31:16 +0000
whoops, silly mistake
git-svn-id: svn://rubyforge.org/var/svn/sup/trunk@115 5c8cc53c-5e98-4d25-b20a-d8db53a31250
Diffstat:
1 file changed, 2 insertions(+), 6 deletions(-)
diff --git a/lib/sup/person.rb b/lib/sup/person.rb
@@ -10,7 +10,7 @@ class PersonManager
self.class.i_am_the_instance self
end
- def name_for email; @names[email][1]; end
+ def name_for email; @names.member?(email) && @names[email][1]; end
def register email, name
return unless name
@@ -116,11 +116,7 @@ class Person
def self.for_several s
return [] if s.nil?
- begin
- s.split_on_commas.map { |ss| self.for ss }
- rescue StandardError => e
- raise "#{e.message}: for #{s.inspect}"
- end
+ s.split_on_commas.map { |ss| self.for ss }
end
end