Makes sure never to add a newline when writing an empty string to a file

This commit is contained in:
Kristian Knarvik 2021-08-17 19:32:47 +02:00
parent a79300732d
commit 8476c78589

View File

@ -158,7 +158,7 @@ public final class CommonFunctions {
* @throws IOException <p>If unable to write to the file</p>
*/
public static void writeFile(String path, String text) throws IOException {
writeFile(path, text, true);
writeFile(path, text, !text.equals(""));
}
/**