Permalink
Browse files

Fixed #4

flush() calls underlying.close()
  • Loading branch information...
1 parent a004131 commit 3666c4a67000b2ab3dbe1561b2aceef60bb894d7 @tototoshi committed May 4, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/main/scala/com/github/tototoshi/csv/CSVWriter.scala
@@ -34,7 +34,7 @@ class CSVWriter protected (writer: Writer) {
def close(): Unit = underlying.close()
- def flush(): Unit = underlying.close()
+ def flush(): Unit = underlying.flush()
def writeAll(allLines: Seq[Seq[Any]]): Unit = {
underlying.writeAll(allLines.map(_.toArray.map(_.toString)))

0 comments on commit 3666c4a

Please sign in to comment.