]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.acorn/src/org/simantics/acorn/AcornDatabaseManager.java
Removed redundant Files.exists/isDirectory checks
[simantics/platform.git] / bundles / org.simantics.acorn / src / org / simantics / acorn / AcornDatabaseManager.java
index db2c16763197a003de5b85bd16de810cd1b8b7da..89c29b6d94b0c1ba38d6a0ffe61e6a67dae6445e 100644 (file)
@@ -20,8 +20,7 @@ public class AcornDatabaseManager {
     public static synchronized Database getDatabase(Path folder) throws ProCoreException {
         Path canonical;
         try {
-            if (!Files.exists(folder))
-                Files.createDirectories(folder);
+            Files.createDirectories(folder);
             canonical = folder.toRealPath();
         } catch (IOException e) {
             throw new ProCoreException("Could not get canonical path.", e);