lib/log2mail/file.rb in log2mail-0.0.1.pre2 vs lib/log2mail/file.rb in log2mail-0.0.1.pre3
- old
+ new
@@ -52,10 +52,10 @@
end
def read_to_end
return unless @f
s = @f.gets(nil)
- @size += s.length
+ @size += s.length if s
s
end
def eof?
!@f or @f.eof?
\ No newline at end of file