Makes sure never to add a newline when writing an empty string to a file
This commit is contained in:
parent
a79300732d
commit
8476c78589
@ -158,7 +158,7 @@ public final class CommonFunctions {
|
|||||||
* @throws IOException <p>If unable to write to the file</p>
|
* @throws IOException <p>If unable to write to the file</p>
|
||||||
*/
|
*/
|
||||||
public static void writeFile(String path, String text) throws IOException {
|
public static void writeFile(String path, String text) throws IOException {
|
||||||
writeFile(path, text, true);
|
writeFile(path, text, !text.equals(""));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user