Reorder lines. Oops!

This commit is contained in:
Devon Govett 2011-07-12 09:49:17 -04:00
parent 2d4d2adf76
commit 7acdb36abe

View File

@ -30,8 +30,8 @@ class PDFReference
finalize: (compress = false) ->
# cache the finalized stream
data = @stream.join '\n'
if @stream
data = @stream.join '\n'
if compress
compressedData = zlib.deflate new Buffer(data)
@finalizedStream = compressedData.toString 'binary'