From fdaf7d52bc7f110f2790931d280f63f4e56405ed Mon Sep 17 00:00:00 2001 From: wmorgan Date: Thu, 28 Dec 2006 23:31:16 +0000 Subject: [PATCH] whoops, silly mistake git-svn-id: svn://rubyforge.org/var/svn/sup/trunk@115 5c8cc53c-5e98-4d25-b20a-d8db53a31250 --- lib/sup/person.rb | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/lib/sup/person.rb b/lib/sup/person.rb index 6640739..9d35443 100644 --- 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 -- 2.45.2