lib/whois/scanners/whois.nic.it.rb in whois-parser-1.2.0 vs lib/whois/scanners/whois.nic.it.rb in whois-parser-2.0.0

- old
+ new

@@ -59,13 +59,13 @@ def parse_section_pairs contents = {} while content = parse_section_pair contents.merge!(content) end - if !contents.empty? - contents - else + if contents.empty? false + else + contents end end def parse_section_pair if @input.scan(/(\s+)(.+?):(\s+)(.*?)\n/)