lib/writeexcel/biffwriter.rb in writeexcel-1.0.5 vs lib/writeexcel/biffwriter.rb in writeexcel-1.0.6
- old
+ new
@@ -1,6 +1,7 @@
# -*- coding: utf-8 -*-
+# frozen_string_literal: true
#
# BIFFwriter - An abstract base class for Excel workbooks and worksheets.
#
#
# Used in conjunction with WriteExcel
@@ -185,10 +186,10 @@
length ||= data.bytesize
# The header contains version and instance info packed into 2 bytes.
header = version | (instance << 4)
- record = [header, type, length].pack('vvV') + data
+ [header, type, length].pack('vvV') + data
end
def not_using_tmpfile
@filehandle.close(true) if @filehandle
@filehandle = nil