Permalink
Browse files

Tidy up method internals

  • Loading branch information...
1 parent cf19dcb commit f772f38d7bc78b2343ee9f4bd89f9c2591baed87 @rorymckinley committed Nov 4, 2012
Showing with 1 addition and 3 deletions.
  1. +1 −3 lib/whois/record/parser/whois.registry.net.za.rb
@@ -88,7 +88,7 @@ def build_registrant_contacts
end
def registrant_details
- if node(:registrant_name)
+ node(:registrant_name) do
{ :name => node(:registrant_name), :email => node(:registrant_email), :phone => node(:registrant_telephone), :fax => node(:registrant_fax)}
end
end
@@ -101,8 +101,6 @@ def parse_date(date_string)
if date_string
date_parts = date_string.split("-")
Time.new(*date_parts,nil,nil,nil,"+02:00")
- else
- nil
end
end

0 comments on commit f772f38

Please sign in to comment.