= Minor formatting tweak

This commit is contained in:
Matthew Cech
2019-04-12 22:34:06 -07:00
parent 815f358873
commit 78ae35d36f
+3
View File
@@ -30,6 +30,7 @@ public class Localizer
private static void Warn(String str) { GlobalLog.Warn(LogFilter.Strings, str); } private static void Warn(String str) { GlobalLog.Warn(LogFilter.Strings, str); }
private static void Error(String str) { GlobalLog.Error(LogFilter.Strings, str); } private static void Error(String str) { GlobalLog.Error(LogFilter.Strings, str); }
// Structure used for holding a pair of strings and any other info we need // Structure used for holding a pair of strings and any other info we need
// about localized information that is being looked up. // about localized information that is being looked up.
private static class LocInfo private static class LocInfo
@@ -122,6 +123,7 @@ public class Localizer
try try
{ {
String fileContents = ReadFileAsString(filename, Charset.defaultCharset()); String fileContents = ReadFileAsString(filename, Charset.defaultCharset());
if(fileContents == null) if(fileContents == null)
{ {
File file = new File(filename); File file = new File(filename);
@@ -143,6 +145,7 @@ public class Localizer
public static void SaveLocToDisk() public static void SaveLocToDisk()
{ {
Log("Attempting to write updated localization file"); Log("Attempting to write updated localization file");
try try
{ {
PrintWriter pw = new PrintWriter(filename); PrintWriter pw = new PrintWriter(filename);