Skip to content

Commit 3fec4c9

Browse files
Merge pull request #33 from alexeagle/newline
Print trailing newline in modified-filepaths
2 parents c7f4f9c + 73770dd commit 3fec4c9

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/main/java/com/bazel_diff/main.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,10 @@ public Integer call() {
5858
.map(Path::toString)
5959
.collect(Collectors.toSet());
6060
FileWriter myWriter = new FileWriter(outputPath);
61-
myWriter.write(String.join(System.lineSeparator(), modifiedFilepaths));
61+
for (String line : modifiedFilepaths) {
62+
myWriter.write(line);
63+
myWriter.write(System.lineSeparator());
64+
}
6265
myWriter.close();
6366
return ExitCode.OK;
6467
} catch (IOException | InterruptedException e) {

0 commit comments

Comments
 (0)