lib/nmap/xml/script.rb in ruby-nmap-1.0.0 vs lib/nmap/xml/script.rb in ruby-nmap-1.0.1

- old
+ new

@@ -55,10 +55,10 @@ # # @return [Hash{String => Hash,Array,String}, Array<Hash>, Array<String>, nil] # The parsed data. # def parse_tables(node) - if (tables = @node.xpath('table')).empty? + if (tables = node.xpath('table')).empty? return end # check for named tables if tables.all? { |table| table.has_attribute?('key') }