lib/roo/excelx.rb in roo-1.3.5 vs lib/roo/excelx.rb in roo-1.3.6
- old
+ new
@@ -126,14 +126,10 @@
ensure
#if ENV["roo_local"] != "thomas-p"
FileUtils::rm_r(@tmpdir)
#end
end
- @default_sheet = nil
- # no need to set default_sheet if there is only one sheet in the document
- if self.sheets.size == 1
- @default_sheet = self.sheets.first
- end
+ @default_sheet = self.sheets.first
@cell = Hash.new
@cell_type = Hash.new
@formula = Hash.new
@first_row = Hash.new
@last_row = Hash.new