Removed auto attempted config file creation on config read IOException.

This commit is contained in:
neviyn 2016-03-13 22:47:42 +00:00
parent b0c1098110
commit 086f887d20

View File

@ -31,11 +31,7 @@ public final class ConfigManager {
return Arrays.asList(librarySettings.getProperty(foldersKey).split(",")) return Arrays.asList(librarySettings.getProperty(foldersKey).split(","))
.stream().map(File::new).filter(File::exists).collect(Collectors.toList()); .stream().map(File::new).filter(File::exists).collect(Collectors.toList());
} }
} catch (IOException ex) { } catch (IOException ignored) {
propertiesFile.getParentFile().mkdirs();
try {
propertiesFile.createNewFile();
} catch (IOException ignored) {}
} }
return new ArrayList<>(); return new ArrayList<>();
} }