Skip to content

Commit

Permalink
Fixed a small issue with CSV
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrei C committed Jul 6, 2018
1 parent d9599cd commit e099a61
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/net/andreinc/mockneat/unit/text/CSVs.java
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,8 @@ public void write(Path path, int numberOfLines, boolean append) {
notNull(path, "path");
isTrue(numberOfLines>0, NUMBER_OF_LINES_POSITIVE);
try {
StandardOpenOption[] ops = (append) ? (new StandardOpenOption[] { CREATE, WRITE, }) :
(new StandardOpenOption[] { CREATE, WRITE, APPEND });
StandardOpenOption[] ops = (append) ? (new StandardOpenOption[] { CREATE, WRITE, APPEND}) :
(new StandardOpenOption[] { CREATE, WRITE });
Files.write(path, list(numberOfLines).val(), ops);
}
catch (IOException e) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.Locale;

import static net.andreinc.mockneat.Constants.*;

Expand Down

0 comments on commit e099a61

Please sign in to comment.