Skip to content

Commit

Permalink
Fixed #4
Browse files Browse the repository at this point in the history
flush() calls underlying.close()
  • Loading branch information
tototoshi committed May 4, 2013
1 parent a004131 commit 3666c4a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/scala/com/github/tototoshi/csv/CSVWriter.scala
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class CSVWriter protected (writer: Writer) {


def close(): Unit = underlying.close() def close(): Unit = underlying.close()


def flush(): Unit = underlying.close() def flush(): Unit = underlying.flush()


def writeAll(allLines: Seq[Seq[Any]]): Unit = { def writeAll(allLines: Seq[Seq[Any]]): Unit = {
underlying.writeAll(allLines.map(_.toArray.map(_.toString))) underlying.writeAll(allLines.map(_.toArray.map(_.toString)))
Expand Down

0 comments on commit 3666c4a

Please sign in to comment.